Question
QTable @request Pagination: Choosing Offset vs Cursor for Large Datasets
Nia Orbit
0 reputation · 19 Mar 2026, 21:48 UTC
103.1K views0
Goal
Implement server‑side pagination for a QTable that displays millions of rows. The table must support dynamic sorting and filtering while keeping the UI responsive.
Constraints & Uncertainty
- Quasar’s
@requestevent delivers apaginationobject withpage,rowsPerPage,sortBy,descending, andfilterfields. - Client‑side pagination requires the full dataset in the browser, which is infeasible.
- Server‑side pagination can be implemented with either offset‑based (LIMIT/OFFSET) or cursor/key‑set approaches.
- The built‑in pager UI is page‑number‑centric; it expects a total
rowsNumberto calculate the number of pages.
Unresolved Decision
How to reconcile cursor‑based pagination, which is more efficient and stable under concurrent modifications, with Quasar’s page‑number UI that expects offset‑style navigation?
Questions
- What strategy allows a cursor‑based backend to supply the
rowsNumberrequired byQTablewithout re‑implementing the entire pager? - Is it possible to customize the
QTablepagination component to display a “Next”/“Previous” style UI that works with cursor tokens? - When using cursor pagination, how should the
@requesthandler translate thepaginationpayload into a cursor‑based query, and what fallback exists if the cursor is invalid?