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

Allow use of indices for collation-aware queries that match nested objects or arrays

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.10
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
    • Fully Compatible
    • Query 16 (06/24/16), Query 17 (07/15/16)

      On our first pass of making index use collation-aware, we disallowed using indices for queries with non-null collators that match nested objects or arrays containing strings. In order to allow index use in this case, we must:
      --Update index selection. Currently if a query matches nested objects or arrays, then in order to select an index, the query and the index must both have null collators. We must remove the code that rejects indices in this case.
      --Update index key generation. Currently only strings at the top level are transformed into ComparisonKeys. We must also transform strings in nested objects and arrays.
      --Update index bounds building. Similarly to index key generation, we must transform strings in nested objects and arrays in our index bounds.

            Assignee:
            david.hatch David Hatch
            Reporter:
            tess.avitabile@mongodb.com Tess Avitabile (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: