Avoid unnecessary clone() of QuerySolution as part of join reordering

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-110757 introduced the function to reorder joins arbitrarily but requires a copy of a QuerySolution tree. We should either:

      • Refactor QuerySolutionMap to hold a QuerySolutionNode by unique_ptr instead of QuerySolution
      • Introduce a releaseRoot() function on QuerySolution

            Assignee:
            Unassigned
            Reporter:
            Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: