mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(db): reduce connection pool sizes to prevent exhaustion (#3649)
This commit is contained in:
@@ -29,7 +29,7 @@ const socketDb = drizzle(
|
||||
prepare: false,
|
||||
idle_timeout: 10,
|
||||
connect_timeout: 20,
|
||||
max: 15,
|
||||
max: 10,
|
||||
onnotice: () => {},
|
||||
}),
|
||||
{ schema }
|
||||
|
||||
@@ -14,7 +14,7 @@ const postgresClient = postgres(connectionString, {
|
||||
prepare: false,
|
||||
idle_timeout: 20,
|
||||
connect_timeout: 30,
|
||||
max: 30,
|
||||
max: 10,
|
||||
onnotice: () => {},
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user