| От | Tom Lane |
|---|---|
| Тема | Re: Slow Query- Bad Row Estimate |
| Дата | |
| Msg-id | 9343.1288387050@sss.pgh.pa.us обсуждение |
| Ответ на | Slow Query- Bad Row Estimate ("Ozer, Pam" <pozer@automotive.com>) |
| Ответы |
Re: Slow Query- Bad Row Estimate
|
| Список | pgsql-performance |
"Ozer, Pam" <pozer@automotive.com> writes:
> Unfortunately I have not received a response on this question. Is more
> information needed? Does anyone have any ideas why the estimates may be
> bad? Or what I might be able to do to speed this up?
The most likely explanation for the bad rowcount estimates is that there
is correlation between the regionid/countyid/cityid columns, only the
planner doesn't know it. Can you reformulate that data representation
at all, or at least avoid depending on it as a join key?
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера