RafaSashi
RafaSashi

Reputation: 17205

MySQL connection and disconnection frequency

Is it better to open and close a new MySQL connection every time a query is made or to keep the connection open and run multiple queries in a single MySQL session?

Upvotes: 0

Views: 141

Answers (1)

Your Common Sense
Your Common Sense

Reputation: 157839

To keep the connection open and run multiple queries in a single mysql session

Upvotes: 1

Related Questions