From 6bfb1be71a0c0901a16ebb884e2df5f1deec4ad0 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 19 May 2024 22:46:22 +0800 Subject: [PATCH] Improve MariaDB's connection (#4728) --- server/database.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/database.js b/server/database.js index ed4b9e681..3374aff9e 100644 --- a/server/database.js +++ b/server/database.js @@ -209,9 +209,9 @@ class Database { let config = {}; let mariadbPoolConfig = { - afterCreate: function (conn, done) { - - } + min: 0, + max: 10, + idleTimeoutMillis: 30000, }; log.info("db", `Database Type: ${dbConfig.type}`);