From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Alison Winters <alison@mirrabooka.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: lots of updates on small table
Date: Thu, 14 Jul 2005 12:21:14 -0400
Message-ID: <20050714162114.GA19778@alvh.no-ip.org> (raw)
In-Reply-To: <42D5F34E.nail9QE1195IE@pluto.mirrabooka.com>
References: <42D5F34E.nail9QE1195IE@pluto.mirrabooka.com>
On Thu, Jul 14, 2005 at 03:08:30PM +1000, Alison Winters wrote:
> Hi,
>
> Our application requires a number of processes to select and update rows
> from a very small (<10 rows) Postgres table on a regular and frequent
> basis. These processes often run for weeks at a time, but over the
> space of a few days we find that updates start getting painfully slow.
> We are running a full vacuum/analyze and reindex on the table every day,
Full vacuum, eh? I wonder if what you really need is very frequent
non-full vacuum. Say, once in 15 minutes (exact rate depending on dead
tuple rate.)
--
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"World domination is proceeding according to plan" (Andrew Morton)
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: alvherre@alvh.no-ip.org, alison@mirrabooka.com
Subject: Re: lots of updates on small table
In-Reply-To: <20050714162114.GA19778@alvh.no-ip.org>
* 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