Created
November 30, 2016 11:04
-
-
Save ahachete/ec3a3397765e9f60ded41a50e7f1d026 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.events.aggregate( | |
[ | |
{ $match: { | |
$and: [ { type: "IssuesEvent"} , { "payload.action" : "opened" } ] } | |
}, | |
{ $group: { _id: "$repo.name", 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