mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 11:06:28 +00:00
update pool sesuai rekomendasi
This commit is contained in:
+4
-1
@@ -97,7 +97,10 @@ module.exports = {
|
||||
// connection: process.env.DB_URL,
|
||||
pool: {
|
||||
min: 2,
|
||||
max: 20,
|
||||
max: 100,
|
||||
idleTimeoutMillis: 30000, // ← Contoh: 30 detik idle timeout
|
||||
acquireTimeoutMillis: 20000, // Maksimal waktu tunggu koneksi dari pool
|
||||
maxLifetimeMillis: 300000 // maksimal umur koneksi: 5 menit (300.000 ms)
|
||||
},
|
||||
migrations: {
|
||||
directory: './infrastructure/database/migrations',
|
||||
|
||||
Reference in New Issue
Block a user