Re: NOT IN doesn't use index? (fwd) - Mailing list pgsql-performance

From Josh Berkus
Subject Re: NOT IN doesn't use index? (fwd)
Date
Msg-id 200305031134.40508.josh@agliodbs.com
Whole thread Raw
In response to Re: NOT IN doesn't use index? (fwd)  (Becky Neville <rebecca.neville@yale.edu>)
List pgsql-performance
Becky,

> Here is the EXPLAIN output from the two queries.  The first is the one
> that uses WHERE field NOT IN ( 'a','b' etc ).  The second is the (much
> faster) one
> that uses WHERE NOT (field = 'a' and field = 'b' etc).

We still can't help you if you're not posting your actual queries.  We have no
idea what's in query3.sql.    We're not clairvoyant, y'know.

--
Josh Berkus
Aglio Database Solutions
San Francisco


pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: why is the db so slow?
Next
From: Joe Conway
Date:
Subject: Re: NOT IN doesn't use index? (fwd)