标签: python flask-sqlalchemy
SqlAlchemy引擎连接将进入MySQL的睡眠模式。
engine = sqlalchemy.create_engine(db_uri, pool_size=5, pool_pre_ping=True, pool_recycle=3600)