perf: push limit/offset to DB in PlayerService.get_players (#37) #43

Merged
cal merged 1 commits from ai/major-domo-database-37 into next-release 2026-03-10 14:29:15 +00:00

1 Commits

Author SHA1 Message Date
Cal Corum
99828893c2 perf: push limit/offset to DB in PlayerService.get_players (#37)
All checks were successful
Build Docker Image / build (pull_request) Successful in 2m26s
Apply .offset() and .limit() on the Peewee query before materializing
results, instead of fetching all rows into memory and slicing in Python.
Total count is obtained via query.count() before pagination is applied.
In-memory (mock) queries continue to use Python-level slicing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 10:33:54 -06:00