Python Flask-sqlalchemy Query Time Out Error
I am using flask-sqlalchemy library in python to management my database(my sql). However when I test query, it give me this error: sqlalchemy.exc.TimeoutError: QueuePool limit of
Solution 1:
If you think your database can handle it, you should be able to increase the SQLAlchemy pool settings via http://flask-sqlalchemy.pocoo.org/2.1/config/ :
- SQLALCHEMY_MAX_OVERFLOW can be increased (from 10) to the max number of concurrent connections you want to allow
- SQLALCHEMY_POOL_TIMEOUT can be increased to give more time for a waiting thread to get a connection from the pool if response time is not a major concern
Post a Comment for "Python Flask-sqlalchemy Query Time Out Error"