Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.Raw.find({country:'AP'}).count()
- //32914
- db.Raw.aggregate([{$match: {country:'AP'}},{$group:{_id: null,idCount: { $addToSet: "$_id" }}}])
- //22078
- db.Raw.aggregate([{$match: {country:'AP'}},{$group:{_id: null,Count:{ $sum: 1 }}}])
- //32914
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement