mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-22 22:48:15 +02:00
fix(db): increase connection pool size and timeout to handle concurrent verifications
This commit is contained in:
1 parent
03cb562866
commit
16ef17957d
1 file changed
+2
-2
+2
-2
@@ -23,9 +23,9 @@ if (isProduction && dbUrl && (dbUrl.includes('logiflow-db') || dbUrl.includes('l
|
|||||||
pool = new Pool({
|
pool = new Pool({
|
||||||
connectionString: dbUrl,
|
connectionString: dbUrl,
|
||||||
ssl: false,
|
ssl: false,
|
||||||
max: 10,
|
max: 25, // Increased from 10 to handle concurrent verifications
|
||||||
idleTimeoutMillis: 30000,
|
idleTimeoutMillis: 30000,
|
||||||
connectionTimeoutMillis: 5000,
|
connectionTimeoutMillis: 15000, // Increased from 5000 to 15000
|
||||||
});
|
});
|
||||||
|
|
||||||
db = drizzle({ client: pool, schema });
|
db = drizzle({ client: pool, schema });
|
||||||
|
|||||||
Reference in new issue
Block a user