Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-67987

Invalidate $lookup plan cache when foreign collection size decreases

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

      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:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            denis.grebennicov@mongodb.com Denis Grebennicov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: