You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ef53860
Browse filesBrowse the repository at this point in the historyBrowse files
perf(users): bound search_users scan with a 5000-row budget (#35)
search_users is a Scan with a post-read contains() filter (DynamoDB
can't index a substring). It stopped early once 10 matches were
collected, but a sparse- or no-match query paginated the whole table,
so cost scaled with the entire user set, not the result. Add a
scanned-items budget (MAX_SCANNED_ITEMS = 5000, PAGE_LIMIT = 500):
once that many rows have been examined, return a best-effort result
instead of traversing the rest. The budget comfortably exceeds
expected per-deployment user counts, so real searches stay
exhaustive; only a pathologically large table is truncated. The
lasting fix is a real search index (qdrant), tracked in #35.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments