Node.js · Middle · Question 74 of 75

Why is cursor-based pagination often better than OFFSET for large tables?

Explanation

Page 10,000 with OFFSET scans everything before it. The trade-off: cursors can't jump straight to page N.

Further reading

Problem with a question

Node.js · Middle · question 74

Test yourself

Take the Node.js · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz