相关疑难解决方法(0)

如何以1000块的形式阅读集合?

我需要在Python代码中读取MongoDB的整个集合(集合名称为"test").我尝试过

    self.__connection__ = Connection('localhost',27017)
    dbh = self.__connection__['test_db']            
    collection = dbh['test']
Run Code Online (Sandbox Code Playgroud)

如何通过1000读取块中的集合(以避免内存溢出,因为集合可能非常大)?

python mongodb pymongo

9
推荐指数
3
解决办法
7875
查看次数

标签 统计

mongodb ×1

pymongo ×1

python ×1