Re: Need to run CLUSTER to keep performance

From: Rafael Martinez <r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no>
To: Rafael Martinez <r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Need to run CLUSTER to keep performance
Date: 2007-11-08 15:10:10
Message-ID: 473326D2.6030600@usit.uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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(dot)m(dot)guerrero(at)usit(dot)uio(dot)no>
Center for Information Technology Services
University of Oslo, Norway

PGP Public Key: http://folk.uio.no/rafael/

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Rafael Martinez 2007-11-08 15:15:45 Re: Need to run CLUSTER to keep performance
Previous Message Heikki Linnakangas 2007-11-08 15:09:55 Re: Need to run CLUSTER to keep performance