Skip to content

Instantly share code, notes, and snippets.

Álvaro Hernández Tortosa ahachete

Block or report user

Report or block ahachete

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Stampede-GithubQuery-MongoDB-B
db.events.aggregate(
[
{ $group: { _id: "$type", total: { $sum: 1 } } },
{ $sort: { total: 1 } }
],
{ allowDiskUse: true, cursor: { batchSize: 100000000 } }
);
View Stampede-GithubQuery-MongoDB-A
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 } }
);
You can’t perform that action at this time.