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

From: mandavi <mandavi(at)web(dot)de>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: queries are fast after dump->restore but slow again after some days dispite vacuum
Date: 2012-07-19 17:24:59
Message-ID: CAGr8ZJ917Ko_kLrfkuUam32z_KVTr8Zy34f0jvvgE+djDv2i9A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

>>> 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?
>>
2012/7/19 Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>:
> Are you running a lot of full table updates?

If you mean updates which are applied on every or almost every row of
the table - yes, it happens with two rather small tables of max. 10
000 rows. But they are both not touched by the query with this big
performance difference.

Regards,
Felix

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2012-07-19 18:57:26 Re: [PERFORM] DELETE vs TRUNCATE explanation
Previous Message Scott Marlowe 2012-07-19 17:04:41 Re: queries are fast after dump->restore but slow again after some days dispite vacuum