pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Dave Tenny <tenny@attbi.com>
Cc: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
Cc: pgsql-performance@postgresql.org
Subject: Re: IN list processing performance (yet again)
Date: Wed, 28 May 2003 13:41:50 -0500
Message-ID: <20030528184150.GB6118@wolff.to> (raw)
In-Reply-To: <3ED4F8B6.7030905@attbi.com>
References: <3ED4B0E5.3050703@attbi.com>
	<200305281846.38928.shridhar_daithankar@nospam.persistent.co.in>
	<3ED4F8B6.7030905@attbi.com>

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.



view thread (23+ messages)  latest in thread

Message-ID: <20030528184150.GB6118@wolff.to>
Permalink:  ../20030528184150.GB6118@wolff.to/
Also on:    postgresql.org/message-id/20030528184150.GB6118@wolff.to

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: bruno@wolff.to, tenny@attbi.com, shridhar_daithankar@persistent.co.in
  Subject: Re: IN list processing performance (yet again)
  In-Reply-To: <20030528184150.GB6118@wolff.to>
  References: <3ED4B0E5.3050703@attbi.com> <200305281846.38928.shridhar_daithankar@nospam.persistent.co.in> <3ED4F8B6.7030905@attbi.com> <20030528184150.GB6118@wolff.to>

* 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