Re: IN list processing performance (yet again)

Bruno Wolff III <bruno@wolff.to>

From: Bruno Wolff III <bruno@wolff.to>
To: Dave Tenny <tenny@attbi.com>
Cc: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>, pgsql-performance@postgresql.org
Date: 2003-05-28T18:41:50Z
Lists: pgsql-performance
On Wed, May 28, 2003 at 13:58:14 -0400,
  Dave Tenny <tenny@attbi.com> wrote:
> A join isn't an option, these elements come a a selection of entity ID's 
> that are specific to some client context.
> Some other people suggested joins too. 

You can union the values together and then join (or use where exists) with the
result. This may not be faster and you may not be able to union several
thousand selects together in a single statement. But it shouldn't be too
much work to test it out.