Paginate with a WHERE filter on the last seen key rather than OFFSET on deep pages.
Why This Matters
Large OFFSET values force the database to scan and discard every skipped row, so deep pages get progressively slower.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.