[SERVER-67987] Invalidate $lookup plan cache when foreign collection size decreases Created: 12/Jul/22  Updated: 05/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Denis Grebennicov Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: sbe
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-66935 Invalidate $lookup plan cache when fo... Closed
Assigned Teams:
Query Execution
Participants:

 Description   

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.


Generated at Thu Feb 08 06:09:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.