Re: Subqueries using IN

Поиск
Список
Период
Сортировка
От
Тема Re: Subqueries using IN
Дата
Msg-id Pine.LNX.4.10.10004111426480.15163-100000@picasso.realtyideas.com
обсуждение исходный текст
Ответ на Subqueries using IN  ("Grembowicz, Kenneth" <GrembowiczK@NAVO.NAVY.MIL>)
Список pgsql-sql

On Tue, 11 Apr 2000, Grembowicz, Kenneth wrote:

> I have a database with approximately 2 millions rows.  I have constructed a
> select statement with one subquery and it is EXTREMELY slow.  If the
> conditions return on record, it takes almost 5 minutes.  Practical usage
> returns a couple thousand records, but as you would guess I can't wait
> days....ANY SUGGESTIONS??????????????
use "exists", instead of in clause. see the archive of this list, there
are plenty of examples.

Kai




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

Предыдущее
От: "Grembowicz, Kenneth"
Дата:
Сообщение: Subqueries using IN
Следующее
От: "Antonio W. Lagnada"
Дата:
Сообщение: DBD::ODBC for Linux