Repository navigation
perf(knowledge): avoid duplicate startup chunk scans - #87
Merged
1 commit merged intoNov 24, 2026
Merged
1 commit merged into
1 commit merged into
Conversation
e7e291e
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.
问题
Windows 上使用 DSH Desktop 0.2.2-rc.5 和 dsh-knowledge 0.5.4,单库约 12.5 万个分块。按启动顺序只读执行 SQLite 查询,两遍合计分别约 62.1 秒和 61.3 秒。开库和服务初始化分别查询了一次分块的向量覆盖率,恢复流程实际只需要判断文档是否已有分块。
这与 #73 的启动慢现象相关。#74 已将产物目录清理移到后台。本次改动集中在 SQLite 启动查询。
改动
验证