You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I've found that mysql pool connection is working well, but it really doesn't close connection even long time unused.
If there any API or trick to close unused connections in the pool?
I usually initialize pool by
mysql.createPool({
connectionLimit: someNumber
}
And I use
pool.query()
to query some data.
If there's no API for it, it would be good to have some flush() function to close idle connections.