From: Jeff Boes <mur@qtm.net>
To: pgsql-admin@postgresql.org
Subject: Table maintenance: order of operations important?
Date: Thu, 20 May 2004 13:48:34 GMT
Message-ID: <fe92d61c6c9a3eea2baa0b200ea5572f@news.teranews.com> (raw)
We have a number of tables from which we expire (delete) rows nightly.
Is there any value to ordering the operations, in terms of either table
physical organization or elapsed time?
E.g.,
DELETE FROM foo WHERE date_expires < now();
VACUUM ANALYZE foo;
CLUSTER foo;
REINDEX TABLE foo;
How would you choose to order these (under 7.4.x) for fastest
turn-around? Does it matter?
--
It may not always be easy, convenient, or politically correct to stand
for truth and right, but it is the right thing to do. Always.
________ --M. Russell Ballard
Jeffery Boes <>< mur@qtm.net
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mur@qtm.net
Subject: Re: Table maintenance: order of operations important?
In-Reply-To: <fe92d61c6c9a3eea2baa0b200ea5572f@news.teranews.com>
References: <fe92d61c6c9a3eea2baa0b200ea5572f@news.teranews.com>
* 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