fix(db): increase connection pool size and timeout to handle concurrent verifications

This commit is contained in:
Michael committed 2026-01-13 16:54:26 +01:00
1 parent 03cb562866
commit 16ef17957d
1 file changed
+2 -2
+2 -2
View File
@@ -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 });