Re: Problem with very big queries. - Mailing list pgsql-jdbc

From John R Pierce
Subject Re: Problem with very big queries.
Date
Msg-id 47FEA82F.4000104@hogranch.com
Whole thread Raw
In response to Problem with very big queries.  (Panagiotis Papadakos <papadako@csd.uoc.gr>)
List pgsql-jdbc
Panagiotis Papadakos wrote:
> Hello everybody.
>
> I want to send to postgresql-8.0 a very big query,
> select * from table where lala IN (....)
> Inside IN there are almost 60000 values.
>


I think I'd put those 60000 values in their own table, and use some sort
of join.

    select t.f1,t.f2 from table as t, table2 as b WHERE t.lala = b.lala;

or something like that.  (i'm lousy at figuring out joins)



pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Problem with very big queries.
Next
From: Kris Jurka
Date:
Subject: Re: Patch to add a socketTimeout property.