Re: Which one is faster? - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: Which one is faster?
Date
Msg-id 200206192034.g5JKYn616099@candle.pha.pa.us
Whole thread Raw
In response to Which one is faster?  (Wei Weng <wweng@kencast.com>)
List pgsql-sql
Wei Weng wrote:
> Between Using Limit P, S or using a cursor to start from FETCH ABSOLUTE
> S and FETCH NEXT for P times, which one is faster?

LIMIT is faster because it doesn't need to generate all the result, in
some cases.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Wei Weng
Date:
Subject: Re: syntax for access an alias in the where clause ?
Next
From: "afa"
Date:
Subject: Assign values to array