5
votes
2answers
2k views

MongoDB, MapReduce and sorting

I might be a bit in over my head on this as I'm still learning the ins and outs of MongoDB, but here goes. Right now I'm working on a tool to search/filter through a dataset, sort it by an arbitrary ...
2
votes
1answer
318 views

mongodb - Finding the Sum of a field (if it exists) in a collection

I have the following mongodb structure { "_id": ObjectId("507c80a143188f9610000003"), "date": ISODate("2012-10-15T21: 31: 13.0Z"), "uid": NumberInt(35920), "comp": NumberInt(770), ...