Re: IN() alternatives

Поиск
Список
Период
Сортировка
От Dann Corbit
Тема Re: IN() alternatives
Дата
Msg-id D90A5A6C612A39408103E6ECDD77B8294CD8EA@voyager.corporate.connx.com
обсуждение исходный текст
Ответ на IN() alternatives  (John Smith <john_smith_45678@yahoo.com>)
Ответы Re: IN() alternatives  (Arjen van der Meijden <acm@tweakers.net>)
Список pgsql-general
Unless the subquery is correlated, you can reformulate it as a join.
-----Original Message-----
From: John Smith [mailto:john_smith_45678@yahoo.com]
Sent: Wednesday, February 05, 2003 1:03 PM
To: pgsql-general@postgresql.org
Subject: [GENERAL] IN() alternatives

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

В списке pgsql-general по дате отправления:

Предыдущее
От: Oliver Elphick
Дата:
Сообщение: Re: [HACKERS] [ANNOUNCE] PostgreSQL v7.3.2 Released
Следующее
От: Neil Conway
Дата:
Сообщение: Re: not exactly a bug report, but surprising behaviour