Search index: lowercased once, stored per batch, dropped a thousand at a time #267
No reviewers
Labels
No labels
area/ci
area/desktop
area/packaging
area/protocol
area/reading
area/ui
area/web
area/writing
kind/bug
kind/feature
kind/infra
kind/request
needs/user
parked
perf
security
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
littlefox/neokom!267
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-232-search-index"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #232
search_view::flush): one IndexedDB transaction, not a database opened per post. (A two-second timer was tried first; a timer started from inside the effect never fired, which the search spec caught.)Measured with
tools/perf.sh(an index of ~700 posts): hits 25 → 16 ms. The difference grows with the index.Verified: search and mentions specs on three profiles (incl. "kept on the device after a reload"); unit tests incl. the thousand-at-once drop; lint three ways.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8