From: Tom Lane <tgl@sss.pgh.pa.us>
To: brendan.curran@gmail.com
Cc: Pg Performance list <pgsql-performance@postgresql.org>
Subject: Re: Scrub one large table against another
Date: Tue, 10 Oct 2006 22:50:19 -0400
Message-ID: <15751.1160535019@sss.pgh.pa.us> (raw)
In-Reply-To: <452C30CA.2070801@gmail.com>
References: <452C1437.9040709@gmail.com>
<13451.1160518445@sss.pgh.pa.us>
<452C208C.5010603@gmail.com>
<13912.1160520427@sss.pgh.pa.us>
<452C30CA.2070801@gmail.com>
Brendan Curran <brendan.curran@gmail.com> writes:
> So much time is being spent in the Unique and Sort leaves... I would
> think that it wouldn't need to do the unique portion, since there is no
> DISTINCT clause...
There's nothing in that query suggesting that suppress.email is unique.
If you know that it is, try using a plain join instead of an IN.
regards, tom lane
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: tgl@sss.pgh.pa.us, brendan.curran@gmail.com
Subject: Re: Scrub one large table against another
In-Reply-To: <15751.1160535019@sss.pgh.pa.us>
* 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