reduce psql connection pool a bit

This commit is contained in:
TheBeastLT
2024-01-31 09:25:33 +02:00
parent ebf2934c6c
commit 79b83e52e4
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ const Op = Sequelize.Op;
const DATABASE_URI = process.env.DATABASE_URI;
const database = new Sequelize(DATABASE_URI, { logging: false, pool: { max: 50, min: 5, idle: 60 * 60 * 1000 } });
const database = new Sequelize(DATABASE_URI, { logging: true, pool: { max: 30, min: 5, idle: 20 * 60 * 1000 } });
const Torrent = database.define('torrent',
{