Reputation: 5186
Is really true that parenthesis in all conditions in postgresql improve performance?
Example:
SELECT field_1, field_2, ... , field_n
FROM table_x
WHERE ((field_x = a) AND (field_y = b) AND (field_z = c))
Upvotes: 1
Views: 101
Reputation: 311018
In short - no. This statement is semantically equivalent to a statement without parenthesis, and there shouldn't be any noticeable performance difference between them.
Upvotes: 2