Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:zap: 改进书签和标签面板加载速度 https://github.com/siyuan-note/siyuan/issues/6677

Liang Ding443c43753fcc
diff --git a/kernel/model/tag.go b/kernel/model/tag.go
index 461d505e95..0da6a8aeed 100644
--- a/kernel/model/tag.go
+++ b/kernel/model/tag.go
@@ -233,7 +233,9 @@ type Tags []*Tag
func BuildTags() (ret *Tags) {
WaitForWritingFiles()
- sql.WaitForWritingDatabase()
+ if !sql.IsEmptyQueue() {
+ sql.WaitForWritingDatabase()
+ }
ret = &Tags{}
labels := labelTags()