Re: Takes too long to fetch the data from database - Mailing list pgsql-performance

From Jim C. Nasby
Subject Re: Takes too long to fetch the data from database
Date
Msg-id 20060421181927.GK49405@pervasive.com
Whole thread Raw
In response to Re: Takes too long to fetch the data from database  ("Merlin Moncure" <mmoncure@gmail.com>)
List 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 by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Takes too long to fetch the data from database
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Introducing a new linux readahead framework