What is the primary purpose of connection pooling in ADO.NET?

  • To increase security of database connections
  • To minimize the overhead of opening and closing database connections
  • To optimize query execution in the database server
  • To reduce memory consumption in the application
Connection pooling in ADO.NET primarily aims to minimize the overhead of opening and closing database connections. When connection pooling is enabled, instead of completely closing a connection, it is returned to a pool where it can be reused by subsequent requests, thus reducing the overhead of establishing new connections. This optimization enhances the performance of applications that frequently interact with the database.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *