From d927d8bdff07cc9bb0c5e8a4742afbc380cfc68f Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Wed, 22 Apr 2026 11:25:13 -0700 Subject: [PATCH] fix(db): raise db pool size (#4263) * fix(db): raise db pool size * Raise socket connections * bump up connection size even more --- apps/sim/socket/database/operations.ts | 2 +- packages/db/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/sim/socket/database/operations.ts b/apps/sim/socket/database/operations.ts index 3e8eeeb99b..93c117ea1d 100644 --- a/apps/sim/socket/database/operations.ts +++ b/apps/sim/socket/database/operations.ts @@ -29,7 +29,7 @@ const socketDb = drizzle( prepare: false, idle_timeout: 10, connect_timeout: 20, - max: 10, + max: 30, onnotice: () => {}, }), { schema } diff --git a/packages/db/index.ts b/packages/db/index.ts index 0cab65a38e..186b076aba 100644 --- a/packages/db/index.ts +++ b/packages/db/index.ts @@ -14,7 +14,7 @@ const postgresClient = postgres(connectionString, { prepare: false, idle_timeout: 20, connect_timeout: 30, - max: 10, + max: 30, onnotice: () => {}, })