pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laszlo Nagy <gandalf@shopzeus.com>
To: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Slow table update
Date: Mon, 22 Dec 2008 12:34:32 +0100
Message-ID: <494F7B48.6070204@shopzeus.com> (raw)
In-Reply-To: <494F749A.5090603@shopzeus.com>
References: <494F749A.5090603@shopzeus.com>

Laszlo Nagy wrote:
> SQL:
>
> update product set sz_category_id=null where am_style_kw1 is not null 
> and sz_category_id is not null
Hmm, this query:

select count(*) from product where am_style_kw1 is not null and 
sz_category_id is not null and sz_category_id<>4809

opens in 10 seconds. The update would not finish in 2600 seconds. I 
don't understand.

L




view thread (9+ messages)  latest in thread

Message-ID: <494F7B48.6070204@shopzeus.com>
Permalink:  ../494F7B48.6070204@shopzeus.com/
Also on:    postgresql.org/message-id/494F7B48.6070204@shopzeus.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: gandalf@shopzeus.com
  Subject: Re: Slow table update
  In-Reply-To: <494F7B48.6070204@shopzeus.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