Newbie question...sorry
I have a simple mysql database running in our Intranet (windows server) which >20 people connect to for searching/inserting records, etc This is done with a simple Excel GUI.
过程是:
- Search Strings are typed in excel cells
- VBA opens connection to Mysql and query is run
- Results retrieved are put on excel Connection to
- mysql closed with VBA
The above process takes in general 0-2 seconds. Records retrieved <100. Everthing runs fine so far.
In order to be able to connect more people in future, I would like to have some feedback on whether it is ok to continously connect and disconnect from mysql in the way I am doing. Can it cause some type of crash/memory leaks, etc ??
是否有更好的办法这样做?
I am hoping to get <2000 users, but I understand the more users connected, worse it is. By disconnecting after each search/insert, I am hoping to keep the number of live connections as low as possible.
感谢您的投入