Re: Poor OFFSET performance in PostgreSQL 9.1.6

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: Poor OFFSET performance in PostgreSQL 9.1.6
Дата
Msg-id 20130829110022.GA27417@depesz.com
обсуждение исходный текст
Ответ на Poor OFFSET performance in PostgreSQL 9.1.6  (<fburgess@radiantblue.com>)
Список pgsql-performance
On Wed, Aug 28, 2013 at 01:39:46PM -0700, fburgess@radiantblue.com wrote:
>    Can anyone offer suggestions on how I can optimize a query that contains the LIMIT OFFSET clause?
>    The explain plan of the query is included in the notepad attachment.
>    thanks

large offsets are slow, and there is no real escape from it.

You can change your paging solution, though, to something that will be
faster.

Possible solutions/optimizations:

http://www.depesz.com/2007/08/29/better-results-paging-in-postgresql-82/

or

http://www.depesz.com/2011/05/20/pagination-with-fixed-order/

Best regards,

depesz



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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Poor OFFSET performance in PostgreSQL 9.1.6
Следующее
От: bsreejithin
Дата:
Сообщение: How clustering for scale out works in PostgreSQL