I have some 25k documents (4 GB in raw json) of data that I want to perform a few javascript operations on to make it more accessible to my end data consumer (R), a
R
When you got access to the mongo shell, it accepts some Javascript commands and then it's simpler:
map = function(item){ db.result.insert(item); } db.collection.find().forEach(map);