From 45091038fe9b8380448b9bc6f624a32c777c890b Mon Sep 17 00:00:00 2001 From: Mohamad Ihsan Date: Wed, 25 Jun 2025 17:53:04 +0700 Subject: [PATCH] update knex poo config untuk development --- knexfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/knexfile.js b/knexfile.js index ec062da..94d817c 100644 --- a/knexfile.js +++ b/knexfile.js @@ -70,7 +70,10 @@ module.exports = { // connection: process.env.DB_URL, pool: { min: 2, - max: 30, + 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',