An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:zap: 改进书签面板加载速度 https://github.com/siyuan-note/siyuan/issues/6677
Liang Ding8652c4cef780
diff --git a/kernel/model/bookmark.go b/kernel/model/bookmark.goindex 5dd1ac861c..64db0b4451 100644--- a/kernel/model/bookmark.go+++ b/kernel/model/bookmark.go@@ -160,7 +160,9 @@ func BookmarkLabels() (ret []string) {func BuildBookmark() (ret *Bookmarks) {WaitForWritingFiles()- sql.WaitForWritingDatabase()+ if !sql.IsEmptyQueue() {+ sql.WaitForWritingDatabase()+ }ret = &Bookmarks{}sqlBlocks := sql.QueryBookmarkBlocks()diff --git a/kernel/sql/queue.go b/kernel/sql/queue.goindex afc88d4674..02e7960891 100644--- a/kernel/sql/queue.go+++ b/kernel/sql/queue.go@@ -81,6 +81,10 @@ func isWritingDatabase() bool {return false}+func IsEmptyQueue() bool {+ return 1 > len(operationQueue) && !util.IsMutexLocked(&txLock)+}+func flushTreeQueue() {ops := mergeUpsertTrees()if 1 > len(ops) {