improve psql pool config

This commit is contained in:
TheBeastLT
2024-01-22 21:58:53 +02:00
parent 0fdc968a86
commit a22d7d4b10
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 } });
const database = new Sequelize(DATABASE_URI, { logging: false, pool: { max: 50, min: 5, idle: 60 * 60 * 1000 } });
const Torrent = database.define('torrent',
{