LINQ3: Move GroupBy accumulators back to the $group stage

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A simple implementation of some of the `GroupBy` overloads requires holding all documents from each group in a single intermediate document, which requires more memory than necessary (and might even exceed the maximum size of a document that can pass from one pipeline stage to the next). Often these pipelines can be rewritten to move the accumulators back to the original `$group` stage. This will most likely be best implemented as a post-processing step of the AST representation of the pipeline (i.e. the already translated LINQ query).

              Assignee:
              Robert Stam
              Reporter:
              Robert Stam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: