refactor: application factory pattern for db connection #106
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
While building #81 I saw that our current version of AIxplora sets up a new DB connection on every request.
That's not best practise and should be replaced.
First impressions on a solution:
https://stackoverflow.com/questions/63270196/how-to-do-persistent-database-connection-in-fastapi
I am open to any other solution which is better than the current implementation.
The text was updated successfully, but these errors were encountered: