Re: Scrub one large table against another - Mailing list pgsql-performance

From Tom Lane
Subject Re: Scrub one large table against another
Date
Msg-id 15751.1160535019@sss.pgh.pa.us
Whole thread Raw
In response to Re: Scrub one large table against another  (Brendan Curran <brendan.curran@gmail.com>)
Responses Re: Scrub one large table against another
List pgsql-performance
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

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Simple join optimized badly?
Next
From: Brian Herlihy
Date:
Subject: Re: Simple join optimized badly?