Re: Paged Query - Mailing list pgsql-performance

From Віталій Тимчишин
Subject Re: Paged Query
Date
Msg-id CABWW-d22e7gv=JoQKsNzdZ2TbEYn4HL-v1TN1ks=+Si=vaQW6Q@mail.gmail.com
Whole thread Raw
In response to Re: Paged Query  (Misa Simic <misa.simic@gmail.com>)
List pgsql-performance


Понеділок, 9 липня 2012 р. користувач Misa Simic <misa.simic@gmail.com> написав:
>
>
> 2012/7/9 Gregg Jaskiewicz <gryzman@gmail.com>
>>
>> Use cursors.
>> By far the most flexible. offset/limit have their down sides.
>
>
> Well, I am not aware what down sides there are in LIMIT OFFSET what does not exist in any other solutions for paged queries...

'where key > last-value order by key limit N' is much better in performance for large offsets.
p.s. Sorry for previous email- hit send too early.

--
Best regards,
 Vitalii Tymchyshyn

pgsql-performance by date:

Previous
From: Віталій Тимчишин
Date:
Subject: Re: Paged Query
Next
From: "Albe Laurenz"
Date:
Subject: Re: how could select id=xx so slow?