Re: Damn slow query - Mailing list pgsql-hackers

From Magnus Naeslund(f)
Subject Re: Damn slow query
Date
Msg-id 043101c26fe4$c3eb4e80$f80c0a0a@mnd
Whole thread Raw
In response to Re: Damn slow query  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> wrote:
>
> We already have a TODO item:
>
> * Allow Subplans to use efficient joins(hash, merge) with upper
> variable

Cool.
One thing to note here is that the JOIN query that Joe suggested is both
faster than the subselect thing (no suprise) but also don't care if
z2test has an index on it or not.
The subselect query started taking huge amount of time again if i
dropped the z2test_x_idx ...

So if the todo could somehow figure out that that subselect should be an
JOIN instead of an NOT EXISTS query, that would be great, because the
index on z2test isn't that super-obvious (i think, because i know the
data is tiny).

Magnus

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Programmer/Networker [|] Magnus Naeslund
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Damn slow query
Next
From: Joe Conway
Date:
Subject: Re: Damn slow query