Re:Building APIs: A Comparison Between Cursor and Offset Pag...
by tdeck on Saturday April 17, 2021 @02:41PM
(#26846421)
I actually built some of those Square APIs! The reason we used cursors was correctness. If new records get added (say, in your transaction history) and you're consuming records newest first, limit+offset pagination will cause the client to miss or double-count some records. That might be OK when a user is scrolling through a listing, but it's a real problem when you're writing an app to compute your sales tax obligation.
[ Parent
| on HN ]
There are no comments on this comment yet.