SQLite LIMIT/OFFSET pagination on Raspberry Pi OS: performance trade‑off with large offsets
Goal To display rows from a multi‑gigabyte SQLite table on a Raspberry Pi in a paginated UI, using either the standard LIMIT / OFFSET clauses or keyset pagination. Constraints & Uncertainty The Pi’s limited RAM and slower CPU mean that large OFFSET values can trigger linear scans, potentially exhausting memory or causing noticeable lag. Keyset pagination