Re: Takes too long to fetch the data from database

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Takes too long to fetch the data from database
Дата
Msg-id 20060421181927.GK49405@pervasive.com
обсуждение исходный текст
Ответ на Re: Takes too long to fetch the data from database  ("Merlin Moncure" <mmoncure@gmail.com>)
Список pgsql-performance
On Fri, Apr 21, 2006 at 09:44:25AM -0400, Merlin Moncure wrote:
> 2nd 50:
> select * from t where j >= j1 and (j > j1 or k > k1) order by j, k limit 50;
> 3 fields:
> select * from t where i >= i1 and (i > i1 or j >= j1) and (i > i1 or j
> > k1 or k > k1) order by i,j,k limit 50;

Note that in 8.2 you'll be able to do:

WHERE (i, j, k) >= (i1, j1, k1)
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Takes too long to fetch the data from database
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Introducing a new linux readahead framework