Which one is better?(DB Connection)
Posted: Sun 27 Aug 2017 05:40
my program is client server application,before i use ADO and mssql,and create one connection in global variable.in this case i dont have problem.
now used Tmyquery and Tmyconnection component and mysql and like before one connection in global variable.but now after many request from users program will hang and answer to request slowly.
is this better(one connection for all procedures in program startup)?
or create connection in every procedure?
Thanks.
now used Tmyquery and Tmyconnection component and mysql and like before one connection in global variable.but now after many request from users program will hang and answer to request slowly.
is this better(one connection for all procedures in program startup)?
or create connection in every procedure?
Thanks.