Limit & offset effect on query plans

Поиск
Список
Период
Сортировка
От Amitabh Kant
Тема Limit & offset effect on query plans
Дата
Msg-id CAPTAQBJPJK8Anraixw1iYBcGe9Rb6wZ6DxPcfiZxvmrtR7hGeQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Limit & offset effect on query plans  (Pavan Deolasee <pavan.deolasee@gmail.com>)
Список pgsql-performance
Hi

Our scripts automatically add "LIMIT ALL" & "OFFSET 0" to every select query if no values are passed on for these parameters. I  remember reading through the mailing list that it's better not to pass them if they are not needed as they add a cost to the query plan. Is this the case, or am i looking at a very minor optimization.


Amitabh

P.S. I haven't checked my query plans to see if there are any actual effect of these keywords as I am still working my way through reading the output of "Explain" ouput.






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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: hash join vs nested loop join
Следующее
От: Pavan Deolasee
Дата:
Сообщение: Re: Limit & offset effect on query plans