Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Duplicate
-
None
-
None
-
None
-
ALL
Description
Given an index on {a:1, b:1, c:1}, the following aggregations could make use of it to run more efficiently
db.foo.aggregate([{$group: {_id: "$a", b_sum: {$sum: '$b'}}}])
|
db.foo.aggregate([{$group: {_id: {a: "$a", b: "$b"}, c_sum: {$sum: '$c'}}}])
|
And other similar aggregations
Attachments
Issue Links
- duplicates
-
SERVER-11447 aggregation can sort using index to speed up group of an indexed field
-
- Closed
-