Skip to content
RED SAGSkills
medium10 pts · first answer countsdatabasesconnection-poolingnodejs

Pool runs dry after some errors

After a few failed queries, every request hangs waiting for a database connection. What is the bug?

const client = await pool.connect()
const res = await client.query(sql, params)
client.release()
return res.rows
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions