From 5984e7a8032a70becac0c2e78809e37c4ea2aada Mon Sep 17 00:00:00 2001 From: Kevin Barnoin Date: Fri, 19 Jul 2024 11:34:58 +0200 Subject: [PATCH] feat: set maxPoolSize to 1_000 (#1368) --- server/src/common/utils/mongodbUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/common/utils/mongodbUtils.ts b/server/src/common/utils/mongodbUtils.ts index 6a74b03679..8392a1a91c 100644 --- a/server/src/common/utils/mongodbUtils.ts +++ b/server/src/common/utils/mongodbUtils.ts @@ -30,6 +30,7 @@ export const connectToMongodb = async (uri: string) => { retryWrites: true, retryReads: true, minPoolSize: config.env === "local" ? 0 : 5, + maxPoolSize: 1_000, }) client.on("connectionPoolReady", () => {