Stop knex from thrashing idle connections

This commit is contained in:
Calvin Montgomery 2017-07-27 18:01:40 -07:00
parent 7bd9934e58
commit 107155a661
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ class Database {
}, },
pool: { pool: {
min: Config.get('mysql.pool-size'), 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 debug: !!process.env.KNEX_DEBUG
}; };