Skip to content

Commit b84f30e

Browse files
authored
fix(db): reduce connection pool sizes to prevent exhaustion (#3649)
1 parent 28de288 commit b84f30e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/sim/socket/database/operations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const socketDb = drizzle(
2929
prepare: false,
3030
idle_timeout: 10,
3131
connect_timeout: 20,
32-
max: 15,
32+
max: 10,
3333
onnotice: () => {},
3434
}),
3535
{ schema }

packages/db/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const postgresClient = postgres(connectionString, {
1414
prepare: false,
1515
idle_timeout: 20,
1616
connect_timeout: 30,
17-
max: 30,
17+
max: 10,
1818
onnotice: () => {},
1919
})
2020

0 commit comments

Comments
 (0)