add psql pool config

This commit is contained in:
TheBeastLT
2024-01-21 23:31:58 +02:00
parent 777241fdfa
commit 1572ae4af5

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 });
const database = new Sequelize(DATABASE_URI, { logging: false, pool: { max: 100, evict: 120000} });
const Torrent = database.define('torrent',
{