Re: Large OR query

From: Einar Karttunen <ekarttun(at)cs(dot)Helsinki(dot)FI>
To: Mitch Vincent <mvincent(at)cablespeed(dot)com>
Cc: Zak McGregor <zak(at)mighty(dot)co(dot)za>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Large OR query
Date: 2001-06-12 15:51:26
Message-ID: Pine.LNX.4.33.0106121849460.1261-100000@raakinsaari.cs.Helsinki.FI
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 12 Jun 2001, Mitch Vincent wrote:

> Is populating another table with the 1000 values and doing a
> SELECT * FROM <whatever> WHERE <something> IN (SELECT <something> FROM
> <whatever>) ?
>
> I'm not entirely sure that it will yield a better result but it's worth a
> try.
>
SELECT * FROM <whatever>,<temptable> WHERE whatever.id=temp.id;

is probably what you are after.

- Einar Karttunen

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tad Naworal 2001-06-12 15:56:35 total newbie question
Previous Message Tamsin 2001-06-12 15:46:18 RE: Large OR query