Web Development
Bug Report
Cursor pagination on created_at silently skipped rows that shared a timestamp
A partner syncing our events API by cursor was missing about one record in two hundred. Our cursor held only created_at, and bulk inserts gave many rows the same timestamp. The fix was a unique tie-breaker, a compound cursor with row value comparison, and a matching index.