N
N
NubasLol2020-01-29 11:17:59
PostgreSQL
NubasLol, 2020-01-29 11:17:59

Offset doesn't work with subqueries?

I use postgres, when paging with offset and limit, and using subqueries, with an increase in the number of offset
, the execution time increases very much. I understand that he first calculates for the entire subselect table, then only makes a selection?

There are no sorting and conditions in the request

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2020-01-29
@NubasLol

No need to use a large offset. Everything. In any DBMS.
https://use-the-index-luke.com/no-offset
https://use-the-index-luke.com/sql/partial-results...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question