Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

use connection pooling for database queries #107

Open
dhach opened this issue Apr 13, 2020 · 0 comments
Open

use connection pooling for database queries #107

dhach opened this issue Apr 13, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@dhach
Copy link
Member

dhach commented Apr 13, 2020

To avoid possible, future performance bottlenecks, the application should use connection pooling for database queries.

Currently, every API call results in a completely new database connection, query and subsequent connection closure, which significantly slows down execution time of queries and resulsts in increased server load.

This can be avoided by using connection pooling:
Keep a configurable amount of connections to the database open and use these to execute the queries necessary to serve API calls.

Such a change in application design would also enable the application to terminate if the database connection is lost and cannot be re-established.

@dhach dhach added the enhancement New feature or request label Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant