node-postgres
node-postgres copied to clipboard
how is pool size computed?
if i have 225 connection limit on database and my server could spin 2-10 nodejs apps
const pool = new Pool(user: username,
password: pass,
host: host,
database: db,
max: ??, << what should be the input here? the maximum of the database or divide 255 by the number of nodejs?
port: 5432,
});