geobeyond / Arpav-PPCV-backend

Backend di Piattaforma Proiezioni Climatiche per il Nord-Est.
Creative Commons Attribution 4.0 International
0 stars 1 forks source link

Reuse db_engine instead of recreating #201

Closed ricardogsilva closed 3 weeks ago

ricardogsilva commented 3 weeks ago

This PR does some light refactoring around the database.create_engine() function and its calls. The aim is to reuse the sqlalchemy engine, which should not be created multiple times in the same process. This should help preventing the system from using too many database clients