Re: queries are fast after dump->restore but slow again after some days dispite vacuum

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: queries are fast after dump->restore but slow again after some days dispite vacuum
Дата
Msg-id CAMkU=1zC6qCJL+7o7mbxV9k1r39PO9u=Cba8h2F6VAY+6XDNBQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: queries are fast after dump->restore but slow again after some days dispite vacuum  (Felix Scheicher <mandavi@web.de>)
Список pgsql-performance
On Thu, Jul 19, 2012 at 8:13 AM, Felix Scheicher <mandavi@web.de> wrote:
> Andrew Dunstan <andrew <at> dunslane.net> writes:
>
>> Try running CLUSTER on the relevant tables and see if it makes a
>> difference. If it does you might want to look into using pg_reorg
>> periodically.
>
>
> That worked like a charm! Many thanks. But how comes, the queries are also fast
> after a restore without the cluster?

Probably fewer buffers needed to be touched.

Running "explain (analyze, buffers)" would give information on how
many buffers were touched.


Cheers,

Jeff

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: queries are fast after dump->restore but slow again after some days dispite vacuum
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: queries are fast after dump->restore but slow again after some days dispite vacuum