-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
$group and $sort must take in all their input before they can produce a result.
At present, when the output is produced, it is simply scrolled over by the DocumentSource. We could start freeing values that have been returned by these sources as they are returned. This may be more noticeable (allow more processing) when more than one $group and/or $sort appear in the same pipeline – documents will flow from one to the next, requiring a constant amount of memory, instead of accumulating in each aggregator in the pipeline.
- duplicates
-
SERVER-6157 Refactor BSONObjExtSort
- Closed
- is depended on by
-
SERVER-6862 improve usability of aggregation sort memory tracking
- Closed
- is related to
-
SERVER-6949 DocumentSourceGroup::dispose() should free intermediate results
- Closed