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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • Query Optimization

    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

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

            Dates

              Created:
              Updated: