Re: IN list processing performance (yet again) - Mailing list pgsql-performance

From Bruno Wolff III
Subject Re: IN list processing performance (yet again)
Date
Msg-id 20030528184150.GB6118@wolff.to
Whole thread Raw
In response to Re: IN list processing performance (yet again)  (Dave Tenny <tenny@attbi.com>)
Responses Re: IN list processing performance (yet again)  (Dave Tenny <tenny@attbi.com>)
List 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.

pgsql-performance by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: IN list processing performance (yet again)
Next
From: Dave Tenny
Date:
Subject: Re: IN list processing performance (yet again)