Re: The hidden cost of limit-offset

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: The hidden cost of limit-offset
Дата
Msg-id CAKFQuwbAa0Qgxiy3h55AjnysixgLFZwriQw-MrFC0QTSG9ysAg@mail.gmail.com
обсуждение исходный текст
Ответ на The hidden cost of limit-offset  (孙冰 <subi.the.dream.walker@gmail.com>)
Ответы Re: The hidden cost of limit-offset
Список pgsql-general
On Sunday, December 6, 2020, 孙冰 <subi.the.dream.walker@gmail.com> wrote:

The skipped rows by an OFFSET clause have to be computed nevertheless. I am wondering if there could be any chance to improve, since the computation is on the entire rows rather than on the criterial columns.

[...]

I don't understand the postgresql internal, but I suspect such a change may introduce significant work on the planner and executor. From my point view, skipping everything (or expensive ones) except the criteria in the target list would greatly improve the usability of OFFSET, and it is definitely worth the effort.


Given that one can write this with a subquery without much difficulty i’m doubtful that effort spent in this area is going to be particularly valuable.

David J.

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

Предыдущее
От: 孙冰
Дата:
Сообщение: The hidden cost of limit-offset
Следующее
От: Alexander Farber
Дата:
Сообщение: Re: Using a boolean column with IF / THEN