Narrow down set of paths returned by TxnWildcardMultikeyPaths

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2026-06-08
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The RYOW cache `TxnWildcardMultikeyPaths::appendMatchingPaths` currently returns every cached multikey path for a given `(collectionUuid, indexName)` bucket, ignoring the query's fieldSet. This was a deliberate simplification (SERVER-127544): faithfully mirroring `getMultikeyPathIndexIntervalsForField` — point-prefix probes plus a numeric-component range expansion — is subtle and bug-prone, and the cache is scoped to a single txn snapshot so realistic sizes are modest.

      Goal:

      • Add a `fieldSet` parameter back to `appendMatchingPaths` and filter cached paths to those that are prefixes of (or equal to) any queried field, including numeric-component range semantics from `getMultikeyPathIndexIntervalsForField`.

            Assignee:
            Yujin Kang Park
            Reporter:
            Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: