There may be a different issue going on, because I haven't been changing anything, just let it run, and now we're up to:
> db.presence.beings.aggregate([{$group: {_id: "$key", count: {$sum: 1}}}, {$sort: {count: -1}}])
{ "_id" : "m#1", "count" : 2952 }
{ "_id" : "m#2", "count" : 2941 }
{ "_id" : "m#0", "count" : 2904 }
There may be a different issue going on, because I haven't been changing anything, just let it run, and now we're up to: beings. aggregate( [{$group: {_id: "$key", count: {$sum: 1}}}, {$sort: {count: -1}}])
> db.presence.
{ "_id" : "m#1", "count" : 2952 }
{ "_id" : "m#2", "count" : 2941 }
{ "_id" : "m#0", "count" : 2904 }
{ "_id" : "m#1", "count" : 2966 }
{ "_id" : "m#2", "count" : 2955 }
{ "_id" : "m#0", "count" : 2916 }
2017-11- 12T11:10: 29.261+ 0000 beings. aggregate( [{$group: {_id: "$key", count: {$sum: 1}}}, {$sort: {count: -1}}, {$limit: 5}])
db.presence.
i{ "_id" : "m#1", "count" : 2977 }
{ "_id" : "m#2", "count" : 2967 }
{ "_id" : "m#0", "count" : 2928 }