Subqueries using IN - Mailing list pgsql-sql

From Grembowicz, Kenneth
Subject Subqueries using IN
Date
Msg-id 78166D547FD9D2119FA700805F9FA971041A9FF8@navont3.navo.navy.mil
Whole thread Raw
Responses Re: Subqueries using IN
List pgsql-sql
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??????????????

Kenny G.

______________________________________________________

Kenneth P. Grembowicz
Oceanographic Databases Division, Code N51
Naval Oceanographic Office
1002 Balch Blvd.
Stennis Space Center, MS 39522-5001
Tel:  (228) 688-5675
Fax: (228) 688-5778
e-mail: grembowiczk@navo.navy.mil



pgsql-sql by date:

Previous
From: Margarita Barvinok
Date:
Subject: ORDER clause
Next
From:
Date:
Subject: Re: Subqueries using IN