-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
SERVER-94212 describes how partial index discriminators are effectively broken for root $or queries (using the subplanner) for the SBE plan cache, which can lead to incorrect query results. That ticket disabled such affected queries from using SBE.
The task in this ticket is to design and implement a mechanism to make the SBE plan cache robust to this problem. One idea is to make the partial index discriminators sunplanner aware, which may involve encoding a discriminator for each branch of the rooted $or instead of just one globally for a partial index.
- related to
-
SERVER-94212 Incorrect query results for $match with rooted $or, followed by $group, using partial index
- Closed