Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
Query Optimization
Description
If $group accepted $reduce as accumulator, it would allow expressing any and all accumulator operations that we don't have implemented.
Proposed syntax:
{$group:{_id:<expr>,
|
g:{$reduce:{
|
input:<expr>,
|
initialValue:<expr>,
|
in:<expr> // using "$$value" and "$$this" same as the $reduce expression
|
} }
|
} }
|
Attachments
Issue Links
- is related to
-
SERVER-16284 Allow for $pushall / $push with $each to allow pushing all elements of array in $group
-
- Open
-
-
SERVER-4437 aggregation: support windowing operation on pipelines
-
- Closed
-
- related to
-
SERVER-29161 Ability to access previous document in $group aggregation
-
- Closed
-