-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
ALL
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
- duplicates
-
SERVER-11447 aggregation can sort using index to speed up group of an indexed field
- Closed