Repository navigation
Conversation
…; inbox.collect reuses unchanged results - larkagentx: a push from an unknown group fetches only that chat (negative cache for GROUPS_EVERY); the whole group read resumes from the failed page with 60 s → 15 min backoff, fetches details only for new ids, and runs every 6 h. Live it ran 87–765 times a day (≤ 24 expected), ~114 requests each, 11–457 failures a day. - core inbox.collect: reuses the whole result when nothing changed and recomputes only chats whose versions, avatars or mutes changed, reading rows with inbox_rows_many in two batches (was 100–500 ms per call, 47k calls a week). WeChat output unchanged (checked against 23,160 synthetic messages). - store: drops the redundant messages_chat_root index (a prefix of messages_chat_root_pos). - today card: the Persona part gets a 1.5 s budget and falls back to the last good value, marked with its time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
做了什么
只读排查线上 m-06a702(飞书扩展 0.11.83)发现四个性能问题,这个 PR 一起处理:
larkagentx.py)inbox.collect每次全量重算(core/openmate_core/app.py)inbox_rows_many,分两批取。store.py):删掉messages_chat_root,它是messages_chat_root_pos的前缀。today.py):调用 Persona 的那一段给 1.5 秒预算,超时就沿用上次成功的结果,并标出数据时间,不再拖住页面。怎么验证的
bash scripts/test.sh三组全部通过:983、425(跳过 2)、191。打包校验目前只提示需要升版本号,合入时再处理。inbox.collect输出都与旧实现一致。没做什么
messages仍然只增不减。要不要加保留期是产品决定,另说。core/,两个扩展都要升。🤖 Generated with Claude Code