Repository navigation
fix: 压缩、还原占用数据库时 hub 不再停摆;数据页统计改走只读连接 - #99
Merged
Merged
Conversation
stqfdyr
force-pushed
the
fix/db-lock-off-runtime
branch
from
October 6, 2026 12:39
b7b5be4 to
e39520c
Compare
This was referenced Oct 6, 2026
stqfdyr
force-pushed
the
fix/db-lock-off-runtime
branch
from
October 6, 2026 14:33
5a74c0b to
5658b5e
Compare
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.
block_in_place等待(db::lock),推送快照的缓存锁同样处理。单核、限速磁盘下实测,开着推送时 13 s 的压缩让其它请求等 12.5 s,改后 0.01 s。COUNT(*))改用一条独立的只读连接,既不占写连接,也不占公开页历史图表用的只读连接;冷缓存时它要把整库读一遍,此前会挡住 agent 上报和整点维护(实测整点时其它请求等 71 s)。