From addaacbc4ae28e28e1d12be8665799cbb1f27ad8 Mon Sep 17 00:00:00 2001 From: Olojakpoke Daniel Date: Sun, 10 Jul 2022 20:22:28 +0100 Subject: [PATCH] fix: reduce db max pool --- server/infra/database/knex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/infra/database/knex.js b/server/infra/database/knex.js index cf48586..fc2332a 100644 --- a/server/infra/database/knex.js +++ b/server/infra/database/knex.js @@ -13,7 +13,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);