Re: Almost infinite query -> Different Query Plan when changing where clause value
В списке pgsql-performance по дате отправления:
| От | Kevin Grittner |
|---|---|
| Тема | Re: Almost infinite query -> Different Query Plan when changing where clause value |
| Дата | |
| Msg-id | 4B790387020000250002F2CF@gw.wicourts.gov обсуждение |
| Ответы |
Re: Almost infinite query -> Different Query Plan when
changing where clause value
Re: Almost infinite query -> Different Query Plan when changing where clause value |
| Список | pgsql-performance |
lionel duboeuf wrote: > Kevin Grittner a écrit : >> I just reread your original email, and I'm not sure I understand >> what you meant regarding VACUUM ANALYZE. If you run that right >> beforehand, do you still get the slow plan for user 10? > I confirm by executing manual "VACUUM ANALYZE" that the problem is > solved. But what i don't understand is that i would expect > autovacuum to do the job. I think this is the crux of the issue. Boosting the default_statistics_target or the statistics target for specific columns might help, reducing autovacuum_analyze_scale_factor might help, but I can't help wondering whether you inserted a large number of rows for user 10 and then ran the query to select user 10 before autovacuum had time to complete. Does that seem possible? -Kevin
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера