Project: ledger-api · Branch: feat/pagination · Mode: default · Model: claude-sonnet-4-6
Summary
Switched the customer list endpoint from offset to keyset pagination with an opaque cursor, so deep pages stay fast and results do not shift when new customers are created.
Conversation
Turn 1 — User
Listing customers gets slow past page 200.
Turn 1 — Assistant
Keyset pagination on (created_at, id) with a base64 cursor; the old page parameter keeps working for one release with a deprecation header.
Tools used in this turn:
Edit: ledger/routes/customers.pyBash: pytest tests/test_pagination.py -q — 7 passed
Connections
- [[ledger-api]]
- [[KeysetPagination]]
- [[FastAPI]]