Re: Performance of request of type WHERE ... IN ( ... ) - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Performance of request of type WHERE ... IN ( ... )
Date
Msg-id web-2314793@davinci.ethosmedia.com
Whole thread Raw
In response to Re: Performance of request of type WHERE ... IN ( ... )  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
List pgsql-sql
Th,

> > I have performance problem of an request of type ... WHERE ... IN (
> ... ).
> > How to improve performance of this type of request when a group of
> id in the
> > 'in' is important.
> 
> Try WHERE ... EXISTS (...).

The explanation of the difference btw. IN and EXISTS is in the
PostgreSQL FAQ on the web site.

-Josh


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: index on to_char(created, 'YYYY') doesn't work
Next
From: Steve Crawford
Date:
Subject: Re: index on to_char(created, 'YYYY') doesn't work