Closing DB connection

Hi,

At the end of each server action, how can we properly close the db connection to avoid having too many unecessary open mysql connections?

Thank you,

Elias

Hi @Teodor can you please elaborate on when the DB conenction is closed? Is it at the end of each server action file?
I am asking in order to be able to correctly plan the usage of SQL connections depending on the server load

@patrick can advise here :slight_smile:

We don’t use persistent connections, a new connection is opened for each action that uses the database and the connections are closed when the action was finished on the server.

3 Likes