Search perf, per-language timestamps, worker hardening (refactor-2 items 4a/4c/6/7) #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/search-worker-fixes"
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?
SearchNormalizer: hoist three Regex objects to object-level vals — eliminates
~4700 regex compilations per typed query (item 4a)
MedicationViewModel: separate language subscription from query subscription so
Room is queried once per language switch, not once per keystroke (item 4c)
MedicationRepository: store last_checked_at_ per language instead of a
single shared key — FR refresh no longer claims NL was just checked (item 6)
UpdateWorker: refresh all supported languages (not just current), use
Result.retry() for IOException so WorkManager applies exponential backoff,
drop redundant context property (item 7)
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com