I am looking for best practice in the following case, with reasons why each method is better.
I have one database with approximately 10 ~ 20 client applications that connect to one main database server.
In very rare cases, there can be about 200 calls from one client to the database per minute.
The application is multi-threaded, about 20 threads for each application.
What will be best here is to support only one database connection for each application and reuse it for each application. OR open new connections for every call you need and quickly close them.
We work with oracle and sql server.
Thanks for your ideas.
source
share