I have a nodejs application and I am using sequelize as ORM with Postgres. As explained in documentation of sequelize, here is my code for pooling.
const sequelize = new Sequelize(/* ... */, {
// ...
pool: {
max: 10,
min: 0,
acquire: 30000,
idle: 10000
}
});
Since Postgres doesn’t have inbuilt pooling (AFAIK), Do I need to install and configure something like pgbouncer, on my server to make pooling work?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…