Re: Problem with very big queries.

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Problem with very big queries.
Дата
Msg-id 47FEA82F.4000104@hogranch.com
обсуждение исходный текст
Ответ на Problem with very big queries.  (Panagiotis Papadakos <papadako@csd.uoc.gr>)
Список 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Problem with very big queries.
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Patch to add a socketTimeout property.