See if this helps:
https://docs.sqlalchemy.org/en/20/orm/session_basics.html#session-faq-whentocreate
and
https://docs.sqlalchemy.org/en/20/orm/contextual.html
Session should be closed correctly etc.
On Fri, Apr 28, 2023, 10:18 PM Erabil Erabil wrote:
> When using SQL Alchemy in a Flask
When using SQL Alchemy in a Flask application, if the application
continuously sends queries to the database, it exceeds the maximum number
of connections in the connection pool. How can I solve this issue?
*sqlalchemy_engine.py*
import os
from sqlalchemy import create_engine
from