当我的数据库服务重新启动时:
Postgres throws terminating connection due to administrator command SSL
connection has been closed unexpectedly
当我在create_engine函数中使用QueuePool作为poolClass时出现上述错误,如下所示:
conn_engine = create_engine(connect_db, poolclass=QueuePool)
但是当我使用pollClass作为" NullPool"时,即使我多次重启数据库错误也没有,
conn_engine = create_engine(connect_db, poolclass=NullPool)
那么我可以使用NullPool进行制作吗?在Sqlalchemy中,NullPool优于QueuePool有什么优势?