Skip to content

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

:art: Push database index commit event https://github.com/siyuan-note/siyuan/issues/8814

Danield800fc169eda
diff --git a/kernel/sql/queue.go b/kernel/sql/queue.go
index e17fe596a4..45410ecb19 100644
--- a/kernel/sql/queue.go
+++ b/kernel/sql/queue.go
@@ -151,6 +151,10 @@ func FlushQueue() {
if 7000 < elapsed {
logging.LogInfof("database op tx [%dms]", elapsed)
}
+
+ // Push database index commit event https://github.com/siyuan-note/siyuan/issues/8814
+ evt := util.NewCmdResult("databaseIndexCommit", 0, util.PushModeBroadcast)
+ util.PushEvent(evt)
}
func execOp(op *dbQueueOperation, tx *sql.Tx, context map[string]interface{}) (err error) {