Re: Subqueries using IN - Mailing list pgsql-sql

From
Subject Re: Subqueries using IN
Date
Msg-id Pine.LNX.4.10.10004111426480.15163-100000@picasso.realtyideas.com
Whole thread Raw
In response to Subqueries using IN  ("Grembowicz, Kenneth" <GrembowiczK@NAVO.NAVY.MIL>)
List 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 by date:

Previous
From: "Grembowicz, Kenneth"
Date:
Subject: Subqueries using IN
Next
From: "Antonio W. Lagnada"
Date:
Subject: DBD::ODBC for Linux