pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brendan Duddridge <brendan@clickspace.com>
To: PostgreSQL Performance <pgsql-performance@postgresql.org>
Subject: App very unresponsive while performing simple update
Date: Sun, 28 May 2006 03:37:57 -0600
Message-ID: <961F6F02-4B00-494C-B071-6DF76A305C14@clickspace.com> (raw)

Hi,

Is Postgres supposed to be able to handle concurrent requests while  
doing large updates?

This morning I was executing the following simple update statement  
that would affect 220,000 rows in my product table:

update product set is_hungry = 'true'  where date_modified >  
current_date - 10;

But the application that accesses the product table for reading  
became very unresponsive while the update was happening.

Is it just a matter of slow I/O? The CPU usage seemed very low (less  
than 5%) and iostat showed  less than 1 MB / sec throughput.

I was doing the update in psql.

Are there any settings that I could tweak that would help with this  
sort of thing?

Thanks,

____________________________________________________________________
Brendan Duddridge | CTO | 403-277-5591 x24 |  brendan@clickspace.com

ClickSpace Interactive Inc.
Suite L100, 239 - 10th Ave. SE
Calgary, AB  T2G 0V9

http://www.clickspace.com

view thread (18+ messages)  latest in thread

Message-ID: <961F6F02-4B00-494C-B071-6DF76A305C14@clickspace.com>
Permalink:  ../961F6F02-4B00-494C-B071-6DF76A305C14@clickspace.com/
Also on:    postgresql.org/message-id/961F6F02-4B00-494C-B071-6DF76A305C14@clickspace.com

 · 

reply

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-performance@postgresql.org
  Cc: brendan@clickspace.com
  Subject: Re: App very unresponsive while performing simple update
  In-Reply-To: <961F6F02-4B00-494C-B071-6DF76A305C14@clickspace.com>
  References: <961F6F02-4B00-494C-B071-6DF76A305C14@clickspace.com>

* 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