| От | Tom Lane |
|---|---|
| Тема | Re: RES: RES: Improving select peformance |
| Дата | |
| Msg-id | 28235.1186107181@sss.pgh.pa.us обсуждение |
| Ответ на | RES: RES: Improving select peformance ("Carlos H. Reimer" <carlos.reimer@opendb.com.br>) |
| Ответы |
RES: RES: RES: Improving select peformance
|
| Список | pgsql-performance |
"Carlos H. Reimer" <carlos.reimer@opendb.com.br> writes:
> In this case, I believe the best choice to improve the performance of this
> particular SQL statement is adding the 'set join_collapse_limit = 1;' just
> before the join statement, correct?
That's a mighty blunt instrument. The real problem with your query is
the misestimation of the join sizes --- are you sure the table
statistics are up to date? Maybe you'd get better estimates with more
statistics (ie, increase the stats target for these tables).
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера