From: Josh Berkus <josh@agliodbs.com>
To: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Th Templ <templ_th@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Performance of request of type WHERE ... IN ( ... )
Date: Wed, 15 Jan 2003 09:17:28 -0800
Message-ID: <web-2314793@davinci.ethosmedia.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0301151259100.1876-100000@matrix.gatewaynet.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, achill@matrix.gatewaynet.com, templ_th@hotmail.com
Subject: Re: Performance of request of type WHERE ... IN ( ... )
In-Reply-To: <web-2314793@davinci.ethosmedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox