Re: limit clause produces wrong query plan

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: limit clause produces wrong query plan
Дата
Msg-id gget6m$24rv$1@news.hub.org
обсуждение исходный текст
Ответ на limit clause produces wrong query plan  ("Andrus" <kobruleht2@hot.ee>)
Ответы Re: limit clause produces wrong query plan
Список pgsql-performance
> it was veery fast. To be honest I do not know what is happening?!

This is really weird.
It seems that PostgreSql OFFSET / LIMIT are not optimized and thus typical
paging queries

SELECT ... FROM bigtable ORDER BY intprimarykey OFFSET pageno*100 LIMIT 100

or even first page query

SELECT ... FROM bigtable ORDER BY intprimarykey OFFSET 0 LIMIT 100

cannot be used in PostgreSql at all for big tables.

Do you have any idea how to fix this ?

Andrus.


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

Предыдущее
От: Kevin Kempter
Дата:
Сообщение: Monitoring buffercache...
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: limit clause produces wrong query plan