Hi Friends,
I am using VFP9 against MySQL database. I use SPT for data processing. I have to settle on one of the options below in managing connections to the database.
1.) Create a connection to the DB and keep it alive till the user logs out, then close it.
2.) Create a connection to the DB only when a transaction is ready for processing, then close it immediately after commit.
Bearing in mind the concurrency issues (around 50 users on DB), and time needed to create a connection, which of the two would be the most practical solution?
What is the practice in the community?
Thanks in advance.
Benson
I am using VFP9 against MySQL database. I use SPT for data processing. I have to settle on one of the options below in managing connections to the database.
1.) Create a connection to the DB and keep it alive till the user logs out, then close it.
2.) Create a connection to the DB only when a transaction is ready for processing, then close it immediately after commit.
Bearing in mind the concurrency issues (around 50 users on DB), and time needed to create a connection, which of the two would be the most practical solution?
What is the practice in the community?
Thanks in advance.
Benson