From: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-admin@postgresql.org
Subject: Poor performance of UPDATE against busy table
Date: Thu, 06 Sep 2001 14:31:51 -0400
Message-ID: <9n8fcr$2oqo$1@news.tht.net> (raw)
We have a table being used as a job queue. There's one 'scheduler'
process that manipulates jobs (inserting, updating, and deleting rows/jobs as
they change status). There are a number (~24) of processes reading and
updating rows as they 'claim' and 'complete' jobs.
Our problem is that throughput on this table is fairly low. Updates by
the 'scheduler' sometimes take 15 seconds (!!). We've tried various
combinations of LOCK TABLE commands, but without much success.
Does anyone know if there are ways to improve the performance of UPDATE
against a table where there are many readers?
--
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: <9n8fcr$2oqo$1@news.tht.net>
References: <9n8fcr$2oqo$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