Offset vs Keyset Pagination in Bun's SQLite: Which Yields Lower Latency for Large Datasets?
Goal Determine the most efficient pagination strategy for a table containing millions of rows when using Bun’s built‑in SQLite module. Constraints Data size: ≥1 million rows. SQLite accessed via import { Database } from 'bun:sqlite' . Pagination must return a fixed number of rows per request. Implementation must rely on standard SQL supported by the module.