当前位置:Gxlcms > 数据库问题 > 使用pymongo需要手动关闭MongoDB Connection吗?

使用pymongo需要手动关闭MongoDB Connection吗?

时间:2021-07-01 10:21:17 帮助过:2人阅读

答:Disconnecting will close all underlying sockets in the connection pool. If this instance is used again it will be automatically re-opened.

 

转自:http://stackoverflow.com/questions/18401015/how-to-close-a-mongodb-python-connection

http://stackoverflow.com/questions/20613339/close-never-close-connections-in-pymongo

使用pymongo需要手动关闭MongoDB Connection吗?

标签:

人气教程排行