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


答: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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM