From 153e5a806dd5ac25f0b6d905290609698e964f4c Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 22 Jan 2022 20:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0sqlite=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E6=B1=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/data/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/back/data/index.ts b/back/data/index.ts index 2e7dd50a..e2bfa5d7 100644 --- a/back/data/index.ts +++ b/back/data/index.ts @@ -5,4 +5,9 @@ export const sequelize = new Sequelize({ dialect: 'sqlite', storage: `${config.dbPath}database.sqlite`, logging: false, + pool: { + max: 5, + min: 0, + idle: 30000, + }, });