EIDA / eida-statistics

Aggregated statistics of EIDA nodes
GNU General Public License v3.0
0 stars 0 forks source link

Use just one connexion to database backend #27

Closed jschaeff closed 1 year ago

jschaeff commented 1 year ago

Instead of issuing one connexion to the SQL backend on each request, use the SQL alchemy native method to interact with the database.

This is usually done with a singleton object managing the database connexion, and all the other functions build the SQL statement and pass it to this object.

vpet98 commented 1 year ago

Done!