Skip to content

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

:art: 历史数据库索引队列化 https://github.com/siyuan-note/siyuan/issues/7386

Liang Dingc61e0ef3f2b9
diff --git a/kernel/sql/database.go b/kernel/sql/database.go
index 07afb726c2..610c13ebaf 100644
--- a/kernel/sql/database.go
+++ b/kernel/sql/database.go
@@ -230,8 +230,8 @@ func initHistoryDBConnection() {
if nil != err {
logging.LogFatalf("create database failed: %s", err)
}
- historyDB.SetMaxIdleConns(1)
- historyDB.SetMaxOpenConns(1)
+ historyDB.SetMaxIdleConns(3)
+ historyDB.SetMaxOpenConns(3)
historyDB.SetConnMaxLifetime(365 * 24 * time.Hour)
}