We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0351044 commit f459549Copy full SHA for f459549
1 file changed
apps/server/src/db/connection.ts
@@ -45,6 +45,13 @@ export function initializeDatabase() {
45
queueLimit: 0,
46
enableKeepAlive: true,
47
keepAliveInitialDelay: 0,
48
+ // Connection timeout and retry settings
49
+ connectTimeout: 10000, // 10 seconds
50
+ acquireTimeout: 10000, // 10 seconds
51
+ timeout: 60000, // 60 seconds for query execution
52
+ // Automatically reconnect on connection loss
53
+ maxIdle: 10, // Maximum idle connections
54
+ idleTimeout: 60000, // Close idle connections after 60 seconds
55
});
56
57
// Create Drizzle instance with schema
0 commit comments