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
Search: re-index older messages after a person or chat is renamed #93
The search index's sender and chat columns hold names (username, first and last name, chat title) taken from users_cache and chats_cache when the message was written. When a person or a chat is renamed, older messages keep the old names in the index, so a search by the new name (sender:newname, chat:"New title") misses them. Since #87, re-fetching a message no longer refreshes them as a side effect.
Proposed: when a users_cache or chats_cache row changes a name that the index uses, queue a re-index of that sender's or chat's messages, done in batches in the background (#89). The daemon writes only to the cache, so it stays read-only towards Telegram.
Done when an e2e test renames a made-up user and a chat and finds their older messages by the new names, and docs/search.md describes when names refresh.
Activity
perf(cache): leave unchanged re-fetched messages and their index alone
test: run only the slow migration next to the other process's writer