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

Bounds generation for collation-aware queries should check that array and object bounds actually contain nested strings

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Querying
    • Labels:
      None

      Description

      Currently, as part of SERVER-23172 collated queries will disallow use of a collated index if query bounds contain an object or array, even if the bounds do not contain a nested string.

      We should consider recursively exploring the bounds to determine if they do in fact contain a string. Currently we are excessively strict in requiring index collation to match query-collation on certain queries.

      This behavior also affects covering analysis.

      The CollationIndexKey class is responsible for key translation and determining whether a given element requires a collation-aware index key.

        Attachments

          Activity

            People

            Assignee:
            backlog-query-optimization Backlog - Query Optimization
            Reporter:
            david.hatch David Hatch
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: