Skip to content Skip to sidebar Skip to footer

Pymongo And Toarray() Method

I need to make some benchmarks on a small database (64MB) and I need to figure out what is the smartest way to fetch whole Mongo collection into python object with PyMongo? In Java

Solution 1:

Have you tried?

result = list(db.collection.find())

Post a Comment for "Pymongo And Toarray() Method"