Skip to content

Commit 9e85d48

Browse files
committed
Reduce max connections
1 parent edbef0b commit 9e85d48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/db/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ let pool;
1313

1414
const createPool = () => {
1515
return postgres(process.env.DATABASE_URL!, {
16+
max: 3,
1617
prepare: false,
1718
idle_timeout: 10000, // 10 seconds
1819
connect_timeout: 1000, // 1 seconds

0 commit comments

Comments
 (0)