使用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

posted @ 2015-07-17 14:52  圆旭  阅读(3731)  评论(0编辑  收藏  举报