IN() alternatives

From: John Smith <john_smith_45678(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: IN() alternatives
Date: 2003-02-05 21:02:53
Message-ID: 20030205210253.53954.qmail@web40712.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


I thought I saw a doc somewhere showing alternatives to using IN() for better performance, but can't find it :(. Are there better performing query alternatives to this?

delete from tab1 where id in (select id2 from tab2 where ...);

Where the subquery returns 1-10K's of records.

John

---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2003-02-05 21:07:23 Re: [HACKERS] [ANNOUNCE] PostgreSQL v7.3.2 Released
Previous Message John Smith 2003-02-05 20:55:12 Deleting orphan records