Re: Clearing rows periodically

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: PostgreSQL Performance <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Clearing rows periodically
Date: 2003-07-18 11:34:40
Message-ID: 20030718113439.GA2503@libertyrms.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, Jul 18, 2003 at 12:55:12AM -0600, Martin Foster wrote:
> The other table follows a sequential order and carries more columns of
> information. However, this table clears it's entry nightly and with
> current settings will delete roughly a days traffic sitting at 50K rows
> of information.

> has been skipped, which includes the use of VACUUM ANALYZE EXPLAIN.
> This seems to be an indication that the process of a daily delete is
> actually a very wise step to take, even if the information itself is not
> needed for very long.
>
> A VACUUM FULL will correct the issue, but put the site out of commission
> for roughly 20 minutes as the drive crunches the information.

During your "clearing period", why not do the deletes in batches, and
VACUUM the table periodically. That will allow you to reclaim the
space gradually, and ensure that you don't end up with a big "bald
spot". But you probably want to increase your FSM settings. See the
docs.

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M2P 2A8
+1 416 646 3304 x110

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Rajesh Kumar Mallah 2003-07-18 12:51:21 Yet another slow join query..
Previous Message Ron Johnson 2003-07-18 10:18:57 Re: Hardware performance