From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Gregory Stark <stark(at)enterprisedb(dot)com> |
Cc: | "Campbell\, Lance" <lance(at)uiuc(dot)edu>, <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Suggestions on an update query |
Date: | 2007-10-27 02:31:11 |
Message-ID: | 20071026193111.7a595247@scratch |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Sat, 27 Oct 2007 03:04:47 +0100
Gregory Stark <stark(at)enterprisedb(dot)com> wrote:
> > O.k. first you might be grinding through your 20 checkpoint segments
> > but in reality what I think is happening is you are doing foreign
> > key checks against all of it and slowing things down.
>
> If you're going to berate someone about top-posting perhaps you
> should attach your own commentary to relevant bits of context :P
It was hardly berating Greg, I even said please.
> I
> suspect you've guessed it right though. In fact I suspect what's
> happening is he doesn't have an index on the referencing column so
> the foreign key checks are doing sequential scans of.
>
Sincerely,
Joshua D. Drake
--
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997 http://www.commandprompt.com/
UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/
From | Date | Subject | |
---|---|---|---|
Next Message | Anton | 2007-10-27 04:26:21 | Re: partitioned table and ORDER BY indexed_field DESC LIMIT 1 |
Previous Message | Gregory Stark | 2007-10-27 02:04:47 | Re: Suggestions on an update query |