Re: Specific query taking time to process

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Specific query taking time to process
Дата
Msg-id CAHOFxGqxRD-=4+GD4egx7r421thgugxHBN-VNAVLi4D5D=sD7w@mail.gmail.com
обсуждение исходный текст
Ответ на Specific query taking time to process  (Fahiz Mohamed <fahiz@netwidz.com>)
Список pgsql-performance
This seems beyond me at this point, but I am curious if you also vacuumed alf_node_properties and alf_node tables and checked when they last got (auto)vacuumed/analyzed. With default configs for autovacuum parameters and tables with that many rows, they don't qualify for autovacuum very often. I don't have much experience with tables in excess of 50 million rows because of manual sharding clients data.

You mention work_mem is set differently. Did you try setting work_mem back to 4MB in session on instance 1 just to test the query? I don't know if work_mem is included in planning stage, but I would think it may be considered. It would be odd for more available memory to end up with a slower plan, but I like to eliminate variables whenever possible.

It might be worthwhile to see about increasing default_statistics_target to get more specific stats, but that can result in a dramatic increase in planning time for even simple queries.

Hopefully one of the real experts chimes in.

В списке pgsql-performance по дате отправления:

Предыдущее
От: Fahiz Mohamed
Дата:
Сообщение: Re: Specific query taking time to process
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: Specific query taking time to process