pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Simon Riggs <simon@2ndquadrant.com>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Karim Nassar <karim.nassar@acm.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-performance@postgresql.org
Subject: Re: Delete query takes exorbitant amount of time
Date: Mon, 28 Mar 2005 11:21:03 +0100
Message-ID: <1112005263.11750.886.camel@localhost.localdomain> (raw)
In-Reply-To: <20050327070313.K29183@megazone.bigpanda.com>
References: <1111709457.9085.127.camel@k2.cet.nau.edu>
<2630.1111711927@sss.pgh.pa.us>
<1111715131.9085.174.camel@k2.cet.nau.edu>
<3750.1111715318@sss.pgh.pa.us>
<4243879B.10200@familyhealth.com.au>
<20845.1111733900@sss.pgh.pa.us>
<1111763448.11750.730.camel@localhost.localdomain>
<1111787264.9168.7.camel@k2.cet.nau.edu>
<20050326075020.P63597@megazone.bigpanda.com>
<1111865788.9172.13.camel@k2.cet.nau.edu>
<20050326151658.D82144@megazone.bigpanda.com>
<1111884288.27481.6.camel@k2.cet.nau.edu>
<20050327070313.K29183@megazone.bigpanda.com>
On Sun, 2005-03-27 at 07:05 -0800, Stephan Szabo wrote:
> On Sat, 26 Mar 2005, Karim Nassar wrote:
> > Some improvement. Even better once it's cached. Row estimate didn't
> > change. Is this the best I can expect? Is there any other optimizations
> > I am missing?
>
> I'm not sure, really. Running a seq scan for each removed row in the
> referenced table doesn't seem like a particularly good plan in general
> though, especially if the average number of rows being referenced isn't
> on the order of 500k per value. I don't know what to look at next though.
>
Karim, please...
run the EXPLAIN after doing
SET enable_seqscan = off
Thanks,
Best Regards, Simon Riggs
view thread (60+ messages) latest in thread
Message-ID: <1112005263.11750.886.camel@localhost.localdomain> Permalink: ../1112005263.11750.886.camel@localhost.localdomain/ Also on: postgresql.org/message-id/1112005263.11750.886.camel@localhost.localdomain ·
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: simon@2ndquadrant.com, sszabo@megazone.bigpanda.com, karim.nassar@acm.org, tgl@sss.pgh.pa.us, chriskl@familyhealth.com.au Subject: Re: Delete query takes exorbitant amount of time In-Reply-To: <1112005263.11750.886.camel@localhost.localdomain> * 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