Re: lots of updates on small table

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Alison Winters <alison(at)mirrabooka(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: lots of updates on small table
Date: 2005-07-14 16:21:14
Message-ID: 20050714162114.GA19778@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Rod Taylor 2005-07-14 16:37:42 Re: lots of updates on small table
Previous Message Dan Harris 2005-07-14 16:05:52 Re: Quad Opteron stuck in the mud