I have a list of collections, and I would like to export all the data from MongoDB (essentially a database dump, but only for certain collections).
I'm using pymongo - is there a fast dump function? say a bulk_find()
Alternatively, I could use this solution, which is sub-optimal:
[d for d in db.collection.find()]
for each collection