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

From mandavi
Subject Re: queries are fast after dump->restore but slow again after some days dispite vacuum
Date
Msg-id CAGr8ZJ917Ko_kLrfkuUam32z_KVTr8Zy34f0jvvgE+djDv2i9A@mail.gmail.com
Whole thread Raw
In response to Re: queries are fast after dump->restore but slow again after some days dispite vacuum  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: queries are fast after dump->restore but slow again after some days dispite vacuum
List 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.marlowe@gmail.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

pgsql-performance by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: queries are fast after dump->restore but slow again after some days dispite vacuum
Next
From: "mark"
Date:
Subject: Deferred constraints performance impact ?