Depending on what you're returning, it can pay to make sure this computation is done with the shortest possible rows, if necessary using a subquery.
Cheers
Dave
On Mon, Aug 2, 2010 at 2:49 PM, Kevin Grittner <Kevin.Grittner@xxxxxxxxxxxx> wrote:
> No NULLs. It looks like it's a good deal slower than the LOJOn 8.4 and later the NOT EXISTS I suggested is a bit faster than
> version, but a good deal faster than the original.
your fast version, since Tom did some very nice work in this area,
implementing semi join and anti join. If you've got much load with
this kind of query, it might be worth upgrading.
-Kevin
--
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance