pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Barnard <kbarnard@speedfc.com>
To: pgsql-performance@postgresql.org
Subject: Re: atrocious update performance
Date: Mon, 05 Apr 2004 13:04:52 -0500
Message-ID: <40715974.10626.ED9A003@localhost> (raw)
In-Reply-To: <009801c41b30$37872380$2500fa0a@CardServices.TCI.com>
References: <004301c411be$74004650$2500fa0a@CardServices.TCI.com>

On 5 Apr 2004 at 12:05, Rosser Schwarz wrote:

> Just this morning, however, I created a copy of the target table (all
> 4.7M rows), with absolutely no foreign keys referring to it, and ran
> the update against the copy.  That update took 2300 seconds.  The
> join columns were indexed in both cases.

Have you added indexes for the custid column for tables account.acct accunt.orgacct 
and note?

I haven't followed the entire thread but it you have cascading FK on those tables 
without an index on the column that could cause your delay.

Kevin Barnard
SpeedFC





view thread (39+ messages)  latest in thread

Message-ID: <40715974.10626.ED9A003@localhost>
Permalink:  ../40715974.10626.ED9A003@localhost/
Also on:    postgresql.org/message-id/40715974.10626.ED9A003@localhost

 · 

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: kbarnard@speedfc.com
  Subject: Re: atrocious update performance
  In-Reply-To: <40715974.10626.ED9A003@localhost>

* 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