Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35748

Allow MultikeyPaths to accept 'allPaths' metadata format

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Index Maintenance, Querying
    • Labels:
      None
    • Query

      Currently, IndexAccessMethod tracks multikey paths as an std::vector<std::set<std::size_t>> with size equal to the number of elements in the index key pattern. Each element in the vector is an ordered set of path-component indices that represent which path-prefixes of the corresponding indexed field cause the index to be multikey.

      For allPaths indexes, we do not know how many elements are in the key pattern, and multikey paths are instead represented in the form {{{ 1: "path.to.array" }}}. We must rework the MultikeyPaths structure to enable it to accept metadata in this format.

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            bernard.gorman@mongodb.com Bernard Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: