My sqlalchemy db object is defined as follows:
db = SQLAlchemy()
app = Flask(__name__)
db.init_app(app)
and i use pandas' read_sql_query in my view functions to retrieve queries:
df = pd.read_sql_query(sql, db.engine)
an ajax call uses this repeatedly, and with a few users i get the dreaded error 'exceeded max_user_connections resource'. can someone help point out where the problem is?