Re: lots of updates on small table - Mailing list pgsql-performance

From Alvaro Herrera
Subject Re: lots of updates on small table
Date
Msg-id 20050714162114.GA19778@alvh.no-ip.org
Whole thread Raw
In response to lots of updates on small table  (alison@mirrabooka.com (Alison Winters))
Responses Re: lots of updates on small table
List pgsql-performance
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)

pgsql-performance by date:

Previous
From: Dan Harris
Date:
Subject: Re: Quad Opteron stuck in the mud
Next
From: Rod Taylor
Date:
Subject: Re: lots of updates on small table