Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f86IWl771686 for ; Thu, 6 Sep 2001 14:32:47 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f86IUpQ91046 for pgsql-admin@postgresql.org; Thu, 6 Sep 2001 14:30:51 -0400 (EDT) (envelope-from news) From: "Jeff Boes" X-Newsgroups: comp.databases.postgresql.admin Subject: Poor performance of UPDATE against busy table Date: Thu, 06 Sep 2001 14:31:51 -0400 Organization: Nexcerpt, Inc. Lines: 17 Message-ID: <9n8fcr$2oqo$1@news.tht.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: scrappy@hub.org User-Agent: Pan/0.9.90 (Unix) To: pgsql-admin@postgresql.org X-Archive-Number: 200109/21 X-Sequence-Number: 2121 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