uliSchuster / real-world-backend

A study project on how to develop a production-grade Haskell backend application.
Apache License 2.0
1 stars 1 forks source link

Use DB connection pooling #29

Closed uliSchuster closed 4 years ago

uliSchuster commented 4 years ago

So far, each DB access uses a new connection. This is slow. The standard approach, instead, is to us a connection pool.

Figure out how to set up such a connection pool and how to use it. Note: For the command-line version of the application, connection pooling does not make much sense, as the application is started anew for each request. However, the pool will become more sensible once the web interface is in place.