Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3320

LINQ3: Move GroupBy accumulators back to the $group stage

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • 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@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: