is It possible to compare two Months Data in single Collection in MongoDB?
问题 I have collection database with 10 000 000 call records. I want to compare call usage of previous month to next month. Example of collection document { "_id" : ObjectId("54ed74d76c68d23af73e230a"), "msisdn" : "9818441000", "callType" : "ISD" "duration" : 10.109999656677246, "charges" : 200, "traffic" : "Voice", "Date" : ISODate("2014-01-05T19:51:01.928Z") } { "_id" : ObjectId("54ed74d76c68d23af73e230b"), "msisdn" : "9818843796", "callType" : "Local", "duration" : 1, "charges" : 150, "traffic"