WHERE order

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема WHERE order
Дата
Msg-id 1061920428.4370.25.camel@jester
обсуждение исходный текст
Ответы Re: WHERE order  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
It would appear that in 7.4 the order of clauses in WHERE affects the
execution time (not output if AND).

I would think that a simple optimization would be to push off evaluation
of a subplan whenever possible by re-arranging AND statements.

In the below example, it gives an order of magnitude speed increase on a
small dataset.



Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Jenny -"
Дата:
Сообщение: Re: table-level and row-level locks.
Следующее
От: Alvaro Herrera Munoz
Дата:
Сообщение: Re: Date input changed in 7.4 ?