From bf9294a4effd57f5b96723dc3189ac3ebd86c26e Mon Sep 17 00:00:00 2001 From: Mhd Zayd Skaff Date: Mon, 23 Jun 2025 15:19:11 +0300 Subject: [PATCH] fix: increase DB max pool size --- libs/common/src/database/database.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/database/database.module.ts b/libs/common/src/database/database.module.ts index f3ec232..dd25da9 100644 --- a/libs/common/src/database/database.module.ts +++ b/libs/common/src/database/database.module.ts @@ -125,7 +125,7 @@ import { VisitorPasswordEntity } from '../modules/visitor-password/entities'; logger: typeOrmLogger, extra: { charset: 'utf8mb4', - max: 50, // set pool max size + max: 100, // set pool max size idleTimeoutMillis: 5000, // close idle clients after 5 second connectionTimeoutMillis: 12_000, // return an error after 11 second if connection could not be established maxUses: 7500, // close (and replace) a connection after it has been used 7500 times (see below for discussion)