Re: Performance Question Followup No.2

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Gordan Bobic <gordan(at)bobich(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Performance Question Followup No.2
Date: 2001-11-07 17:30:49
Message-ID: 20011107092825.B49204-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Wed, 7 Nov 2001, Gordan Bobic wrote:

> After just having split the action into two parts (FTI delete + Master
> delete), it would appear that most of the delay does come from the triggers
> executing.
>
> delete from masterfti where masterfti.id = master.id and master.entrytime <
> '31-Oct-2001';
> DELETE 172609
>
> Came back in about 10 seconds.
>
> delete from master where entrytime < '31-Oct-2001';
>
> is still going after 10 minutes even though there are no records in the FTI
> table that are being deleted.
>
> Is there an explanation for this? Anything that I should check? Any
> performance tweaks that would improve this situation?
>
> Sorry to go on about this, but I'm totally puzzled by this.

Have you tried restarting your connection and doing the set for the
sequence scan and then doing the first delete? The foreign key
stuff caches a query plan the first time IIRC, so if you do the
set after it's run once, it isn't going to change its plan.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-11-07 18:01:12 Re: Old Template0 is annoying me!
Previous Message Jean-Michel POURE 2001-11-07 17:28:01 Re: Sourceforge on Oracle?