I always close the connection or is it interesting to leave it open at any point? Moreover, if it's bad, how bad is it to leave it open?
Closing the connection is advisable. However, if your communication with database is quite frequent, using ConnectionPool would be better.
You should close it unless you have a lot of queries in a short period of time
Обсуждают сегодня