Skip to content
RED SAG Skills
hardStudy question · answer published in REST API interview questions, so no pointspaginationsqlapi-design

Items missing between pages

An activity feed uses this cursor query. After a bulk import gave 300 rows the same created_at, users report items missing between pages. What is the fix?

SELECT * FROM events
WHERE created_at < $1  -- created_at of last row on previous page
ORDER BY created_at DESC
LIMIT 50;
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions