Invalidate $lookup plan cache when foreign collection size decreases

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Ticket SERVER-66935 only handles the case when the size of the foreign collection increases. When the execution tree has hash_lookup stage but the foreign collection is no longer eligible for it, we perform replanning and invalidate the existing plan cache entry.

      The case when the foreign collection size decreases and it is again eligible for hahs_lookup is not handled.

              Assignee:
              [DO NOT USE] Backlog - Query Execution
              Reporter:
              Denis Grebennicov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: