From fbb686c40f96028db90f2f3ff59357207a16d5cc Mon Sep 17 00:00:00 2001 From: Olojakpoke Daniel Date: Wed, 29 Jun 2022 20:43:29 +0100 Subject: [PATCH] fix: reduce max pool connections --- server/database/knex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/database/knex.js b/server/database/knex.js index c35eb04..2149e09 100644 --- a/server/database/knex.js +++ b/server/database/knex.js @@ -12,7 +12,7 @@ const knexConfig = { client: 'pg', debug: process.env.NODE_LOG_LEVEL === 'debug', connection, - pool: { min: 0, max: 100 }, + pool: { min: 0, max: 20 }, }; log.debug(process.env.DATABASE_SCHEMA);