From: Rafael Martinez <r.m.guerrero@usit.uio.no>
To: Rafael Martinez <r.m.guerrero@usit.uio.no>
To: pgsql-performance@postgresql.org
Subject: Re: Need to run CLUSTER to keep performance
Date: Thu, 08 Nov 2007 16:10:10 +0100
Message-ID: <473326D2.6030600@usit.uio.no> (raw)
In-Reply-To: <20071108145646.GI2938@alvh.no-ip.org>
References: <4732E6B4.1030907@usit.uio.no>
<20071108145646.GI2938@alvh.no-ip.org>
Alvaro Herrera wrote:
> Rafael Martinez wrote:
>> The 'problem' is that performance decrease during the day and the only
>> thing that helps is to run CLUSTER on the table with problems. VACUUM
>> ANALYZE does not help.
>
> Probably because all the live tuples are clustered at the end of the
> table, and the initial pages are polluted with dead tuples. Try
> vacuuming the table much more often, say every few minutes.
>
> Your table is 2536 pages long, but it could probably be in the vicinity
> of 700 ...
>
We run VACUUM ANALYZE every 10 minuttes during 2-3 days to see if it
helped, but when it didn't we when back to the old configuration (1 time
everyday)
Yes, after a CLUSTER we are using 517 pages. But the table does not grow
much, it is always around 12-20MB, it looks like vacuum works without
problems.
regards,
--
Rafael Martinez, <r.m.guerrero@usit.uio.no>
Center for Information Technology Services
University of Oslo, Norway
PGP Public Key: http://folk.uio.no/rafael/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: r.m.guerrero@usit.uio.no
Subject: Re: Need to run CLUSTER to keep performance
In-Reply-To: <473326D2.6030600@usit.uio.no>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox