| От | tv@fuzzy.cz |
|---|---|
| Тема | Re: Interpreting EXPLAIN ANALYSE |
| Дата | |
| Msg-id | 3e82c37a83dc6e23bd2930460c779b01.squirrel@sq.gransy.com обсуждение |
| Ответ на | Re: Interpreting EXPLAIN ANALYSE ("Henry C." <henka@cityweb.co.za>) |
| Список | pgsql-general |
> On Fri, June 3, 2011 13:57, tv@fuzzy.cz wrote: >> There's something very wrong with snames - the planner expects 22 rows >> but >> gets 164147851. Which probably causes a bad plan choice or something >> like that. >> Try to analyze the snames table (and maybe increase the statistics >> target on the columns). > > ANALYZE is your friend indeed, like a nice cold beer... from over 500k ms > to > 1 ms. > > I was running ANALYZE on one of the tables in the join, but not the > others... > <sigh> So you have turned off autovacuum (that should handle this automatically) or you're running an old version (autovacuum was enabled by default in 8.3 IIRC). regards Tomas
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера