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

Refactor Join implementation

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 3.1.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • None
    • Fully Compatible
    • Dotnet Drivers
    • Not Needed

      The current implementation of Join 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:
              Resolved: