From c61e0ef3f2b96fa93fa6c28551e8150a7fb90982 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 17 Feb 2023 11:37:43 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E7=B4=A2=E5=BC=95=E9=98=9F=E5=88=97=E5=8C=96=20https:?= =?UTF-8?q?//github.com/siyuan-note/siyuan/issues/7386?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/sql/database.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sql/database.go b/kernel/sql/database.go index 07afb726c..610c13eba 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) }