Hi
how should we handle the connection to mysql:
open and close the connection for each transaction
or
open the connection only once and do not close it again
I have some projects where the connection remains open for days or weeks, but I don't know if it is the most convenient
Thank
how should we handle the connection to mysql:
open and close the connection for each transaction
B4X:
SQL1.Initialize(.......
SQL1.ExecQuery("SELECT .....
SQL1.Close
SQL1.Initialize(.......
SQL1.ExecQuery("SELECT .....
SQL1.Close
open the connection only once and do not close it again
I have some projects where the connection remains open for days or weeks, but I don't know if it is the most convenient
B4X:
SQL1.Initialize(.......
SQL1.ExecQuery("SELECT .....
SQL1.ExecQuery("SELECT .....
SQL1.ExecQuery("SELECT .....
SQL1.ExecQuery("SELECT .....