| От | Tom Lane |
|---|---|
| Тема | Re: Opptimizing projections containing unused columns |
| Дата | |
| Msg-id | 24244.1224092193@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Opptimizing projections containing unused columns ("Andrus" <kobruleht2@hot.ee>) |
| Ответы |
Re: Optimizing projections containing unused columns
|
| Список | pgsql-general |
"Andrus" <kobruleht2@hot.ee> writes:
> Is it OK to put all filters to outer query WHERE clase?
> Or should I move as many filter conditions as possible to inner query so
> that inner query returns 10000 records instead of 500000 records.
> Is there difference in perfomance if inner query returs large number of rows
> which are filtered only by outer query ?
This question is too vague to be answerable --- especially if you want
an answer that applies across all 8.x releases. I'd suggest
experimenting a bit using EXPLAIN ANALYZE to see what happens in your
actual application.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера