Re: Is there a way too speed up Limit with high OFFSET ?

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Is there a way too speed up Limit with high OFFSET ?
Дата
Msg-id 4C63A71A.2090104@lelarge.info
обсуждение исходный текст
Ответ на Is there a way too speed up Limit with high OFFSET ?  (Georgi Ivanov <georgi.r.ivanov@gmail.com>)
Список pgsql-general
Le 12/08/2010 09:43, Georgi Ivanov a écrit :
> [...]
> I have query like this
> Select * from tabelname limit 10 OFFSET 10;
>
> If i increase the OFFSET to 1000 for example, the query runs slower . The
> bigger is OFFSET the slower is the query.
>
> This is standard pagination feature i use for my website.
> Actually the query is little bit more complex than this, but it is generally
> a
> select with a join.
>
> So i wander if there is a way to speed up this kind of query ?
>

You should better use cursors, than the OFFSET/LIMIT clause.


--
Guillaume
 http://www.postgresql.fr
 http://dalibo.com

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

Предыдущее
От: Georgi Ivanov
Дата:
Сообщение: Is there a way too speed up Limit with high OFFSET ?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Is there a way too speed up Limit with high OFFSET ?