From c9fba77949c3b83a2cd40f11dd7ed16f16315b58 Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Wed, 22 Apr 2026 10:39:37 -0700 Subject: [PATCH 1/3] fix(db): raise db pool size --- 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 3e8eeeb99bb..b17cee9b014 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: 15, onnotice: () => {}, }), { schema } diff --git a/packages/db/index.ts b/packages/db/index.ts index 0cab65a38e3..8fabcaa2ab5 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: 20, onnotice: () => {}, }) From 7453b96e02744a0404ede784305138b1269d5fc8 Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Wed, 22 Apr 2026 10:41:58 -0700 Subject: [PATCH 2/3] Raise socket connections --- apps/sim/socket/database/operations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/socket/database/operations.ts b/apps/sim/socket/database/operations.ts index b17cee9b014..b2f97f91e80 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: 15, + max: 25, onnotice: () => {}, }), { schema } From 94e0e62955848e6f34efb2184da79ff9d9b863f1 Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Wed, 22 Apr 2026 11:12:09 -0700 Subject: [PATCH 3/3] 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 b2f97f91e80..93c117ea1dd 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: 25, + max: 30, onnotice: () => {}, }), { schema } diff --git a/packages/db/index.ts b/packages/db/index.ts index 8fabcaa2ab5..186b076abaf 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: 20, + max: 30, onnotice: () => {}, })