db.events.aggregate( | |
[ | |
{ $match: { "payload.action": { $exists: true } } }, | |
{ $group: { _id: "$payload.action", total: { $sum: 1 } } }, | |
{ $sort: { total: 1 } } | |
], | |
{ allowDiskUse: true, cursor: { batchSize: 100000000 } } | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment