Optimization to work with PostresSQL ...