Connection pooling to the database — and why
When Your project begins popular and every millisecond of processing the request from the user is critical, it is necessary to search for bottlenecks in the system. Often the time it takes to execute SQL query from the application to the database. Try to understand that it is possible to optimize the program when working with the database. the Theory For better understanding let us consider what steps are performed when an application makes a request to the database, such as request sample: the Opening connection to the database and send the request to the server. the Server parses the SQL query. the the Server optimizes the query based on rules and statistics tables. The result is a query execution plan. the the server executes the query in accordance with a previously built plan and sends the results to the user. On what can you do to save time? First step open the connection with the server is quite long and we can exclude in advance by preparing a pool of