Re: atrocious update performance

From: "Kevin Barnard" <kbarnard(at)speedfc(dot)com>
To: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: atrocious update performance
Date: 2004-04-05 18:04:52
Message-ID: 40715974.10626.ED9A003@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Gary Doades 2004-04-05 18:11:56 Re: PostgreSQL and Linux 2.6 kernel.
Previous Message Joe Conway 2004-04-05 17:49:37 Re: SETOF performance