Skip to content

Commit 5b77964

Browse files
fix(db): increase connection pool size from 10 to 15
1 parent 9c0cd61 commit 5b77964

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/drizzle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function getReplicaUrl(): string {
6565
// Keep low because Vercel can spawn 100+ concurrent serverless instances,
6666
// each with its own pool, all hitting the same pgbouncer. At max:100, a cold-start
6767
// cascade can open 100×N connections simultaneously and overwhelm pgbouncer.
68-
const max = 10;
68+
const max = 15;
6969

7070
const idleTimeoutMillis = 10_000;
7171

0 commit comments

Comments
 (0)