Re: atrocious update performance - Mailing list pgsql-performance

From Kevin Barnard
Subject Re: atrocious update performance
Date
Msg-id 40715974.10626.ED9A003@localhost
Whole thread Raw
In response to Re: atrocious update performance  ("Rosser Schwarz" <rschwarz@totalcardinc.com>)
Responses Re: atrocious update performance  ("Rosser Schwarz" <rschwarz@totalcardinc.com>)
Re: atrocious update performance  ("scott.marlowe" <scott.marlowe@ihs.com>)
List pgsql-performance
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



pgsql-performance by date:

Previous
From: "Aaron Werman"
Date:
Subject: Re: single index on more than two coulumns a bad thing?
Next
From: "Matthew T. O'Connor"
Date:
Subject: Re: performance comparission postgresql/ms-sql server