From: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-admin@postgresql.org
Subject: Re: Poor performance of UPDATE against busy table
Date: Thu, 06 Sep 2001 15:44:48 -0400
Message-ID: <9n8jlk$2pm8$1@news.tht.net> (raw)
References: <20010906141522.A3371@rice.edu>
In article <20010906141522.A3371@rice.edu>, "Ross J. Reedstrom"
<reedstrm@rice.edu> wrote:
> On Thu, Sep 06, 2001 at 02:31:51PM -0400, Jeff Boes wrote:
>> Does anyone know if there are ways to improve the performance of UPDATE
>> against a table where there are many readers?
> You don't mention your version of pgsql, but if you get a lot of
> throughput on that table, how often do you VACUUM it? All those dead
> tuples take space that has to be scanned through, since indices don't
> keep track of tuple state.
Bingo, you got it. Actually, I came to this conclusion shortly after I
posted the original note, and did a VACUUM, which improved performance by
a factor of 100.
Excuses:
1) This is my first PostgreSQL database, so I wasn't aware of how
critical VACUUM can be in this kind of situation.
2) It's a development system, not a production system, so we don't have
regular backup/reorg set up yet (but it just jumped to the head of the
list of things-I-need-to-do-yesterday!).
--
Jeff Boes vox 616.226.9550
Database Engineer fax 616.349.9076
Nexcerpt, Inc. jboes@nexcerpt.com
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: jboes@nexcerpt.com
Subject: Re: Poor performance of UPDATE against busy table
In-Reply-To: <9n8jlk$2pm8$1@news.tht.net>
References: <20010906141522.A3371@rice.edu> <9n8jlk$2pm8$1@news.tht.net>
* 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