ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.1.0-rc1025
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Validator MatchExpression inference produces a SchemaTypeInfo containing inferred field types used by query planning optimizations. When the collection validator or validation level changes, these inferred types may become stale while existing cached plans continue to be reused.

      Update plan-cache invalidation so that changes to validator-derived inferred types invalidate affected cached plans. Initially, use collection-wide invalidation by reusing the existing collection cache invalidation mechanism for both classic and SBE plan caches.

      The implementation should compare the previous and newly inferred Type values rather than raw validator definitions. Validator changes that produce equivalent inferred types should not unnecessarily invalidate cached plans. Schema epochs must continue to invalidate in-flight plans that observe metadata changes during yield.

            Assignee:
            Matt Olma
            Reporter:
            Matt Olma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: