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

Generate more optimal MQL for Join/GroupJoin using pipeline argument to $lookup

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: LINQ3
    • None
    • Dotnet Drivers

      The current implementation of Join/GroupJoin copies the entire foreign collection document into the pipeline and then applies a projection to it in a subsequent stage.

      We can generate better MQL using the new pipeline argument to $lookup that only copies the final projection results into the pipeline.

      When the final result is smaller that the foreign collection document (which is usually the case) this will allow joining with a larger number of foreign documents before hitting the 16MB document limit in intermediate pipeline results.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: