From 107155a661ea31c0716341d861f8b8fba09ee832 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Thu, 27 Jul 2017 18:01:40 -0700 Subject: [PATCH] Stop knex from thrashing idle connections --- src/database.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/database.js b/src/database.js index 2a16ad5d..61155c19 100644 --- a/src/database.js +++ b/src/database.js @@ -29,7 +29,8 @@ class Database { }, pool: { min: Config.get('mysql.pool-size'), - max: Config.get('mysql.pool-size') + max: Config.get('mysql.pool-size'), + refreshIdle: false }, debug: !!process.env.KNEX_DEBUG };