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'm just struggling with this issue for hours and I think I can not figure it out by myself, so I put this question here. I got some database operation functions like below, and the problem is even I use db.close() after the query is finished, every time when queryAllThreads is invoked, the number of connections in mysql database is still keep growing and never decrease its number, so am I missing anything in the document to close the database connection? How can I fix this because I will invoke this query function every minute, and it will reach the maximum number of database connections in a relatively short time. Thanks in advance!
Hi, I'm just struggling with this issue for hours and I think I can not figure it out by myself, so I put this question here. I got some database operation functions like below, and the problem is even I use
db.close()
after the query is finished, every time whenqueryAllThreads
is invoked, the number of connections in mysql database is still keep growing and never decrease its number, so am I missing anything in the document to close the database connection? How can I fix this because I will invoke this query function every minute, and it will reach the maximum number of database connections in a relatively short time. Thanks in advance!The text was updated successfully, but these errors were encountered: