KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to read whole collection from MongoDB ( collection name is "test" ) in Python code. I tried like self.__connection__ = Connection('localhost',27017) dbh = self.__connection__['test_db'] collection = dbh['test'] How to read through collection in chunks by 1000 ( to avoid memory overflow because collection can be very large ) ?
Tags (comma-separated)
Save Edits
Cancel