-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
For example, suppose we have a schema constraint that says "a.b" is not an array, but there is also an index on "a.b" that gives us the same information. When the schema constraint is modified in some way, we shouldn't have to kill queries that relied on 'a.b' not being an array because the same fact can be obtained from index metadata.
This would probably involve exposing some API to the dependency graph from expCtx or SchemaTypeInfo that allows the graph to mark SchemaTypeInfo as used.
This is probably a pretty narrow scenario that would introduce additional complexity, so we might not want to do this at all.