| От | Kevin Grittner |
|---|---|
| Тема | Re: Query with limit goes from few ms to hours |
| Дата | |
| Msg-id | 20121023183316.179560@gmx.com обсуждение исходный текст |
| Ответ на | Query with limit goes from few ms to hours (henk de wit <henk53602@hotmail.com>) |
| Ответы |
Re: Query with limit goes from few ms to hours
|
| Список | pgsql-performance |
henk de wit wrote: > Well, what do you know! That did work indeed. Immediately after the > ANALYZE on that parent table (taking only a few seconds) a fast > plan was created and the query executed in ms again. Silly me, I > should have tried that earlier. Of course, if your autovacuum settings are aggressive enough, you should gernerally not need to run ANALYZE explicitly. You should double-check that autovacuum is turned on and configured at least as aggressively as the default settings, or you will probably get little surprises like this when you least expect them. -Kevin
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера