Re: Damn slow query - Mailing list pgsql-hackers

From Stephan Szabo
Subject Re: Damn slow query
Date
Msg-id 20021009150709.L7789-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Damn slow query  ("Magnus Naeslund(f)" <mag@fbab.net>)
List pgsql-hackers
On Wed, 9 Oct 2002, Magnus Naeslund(f) wrote:

> Hello, i've got this query that's really slow...
> Figure this:
>
> testdb=> select now() ; select gid from bs where gid not in ( select x
> from z2test ); select now();

Per FAQ suggestion, try something like
select gid from bs where not exists (select * from z2test wherez2test.x=bs.gid);
to see if it is faster.




pgsql-hackers by date:

Previous
From: "Magnus Naeslund(f)"
Date:
Subject: Damn slow query
Next
From: Joe Conway
Date:
Subject: Re: Damn slow query