Session: customer-api-pagination — 2026-08-20

ledger-api · Claude · branch feat/pagination · claude-sonnet-4-6 · 2026-08-20 11:20 · 1 msgs · 2 tools · 1 min read · updated 2 months ago

tools: Bash, Edit
← ledger-api Download .md .txt .json
Tool calls
Bash Bash: 1 call (50.0%) 1 Edit Edit: 1 call (50.0%) 1
Token usage50.4K total
Input5.4K
Cache creation10.8K
Cache read32.4K
Output1.8K
Cache hit ratio67%· warming up

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.py
  • Bash: pytest tests/test_pagination.py -q — 7 passed

Connections

  • [[ledger-api]]
  • [[KeysetPagination]]
  • [[FastAPI]]

Keyboard shortcuts

⌘K / Ctrl+KOpen command palette
/Focus search
g hGo to home
g pGo to projects
g sGo to sessions
j / kNext / prev row (tables)
?Show this help
EscClose dialogs

Structured queries

Mix key:value filters with free text in the palette:

type:sessionOnly session pages
project:llm-wikiFilter by project name (substring)
model:claudeFilter by model name (substring)
date:>2026-03-01Sessions after a date
date:<2026-04-01Sessions before a date
tags:rustPages mentioning a tag/topic
sort:dateSort results by date (newest first)

Example: type:session project:llm-wiki date:>2026-04 sort:date