Re: Paged Query

Поиск
Список
Период
Сортировка
От Віталій Тимчишин
Тема Re: Paged Query
Дата
Msg-id CABWW-d22e7gv=JoQKsNzdZ2TbEYn4HL-v1TN1ks=+Si=vaQW6Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Paged Query  (Misa Simic <misa.simic@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Віталій Тимчишин
Дата:
Сообщение: Re: Paged Query
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: how could select id=xx so slow?