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

Support $in range rewrites when querying on prefix of an encrypted field

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Queryable Encryption
    • None
    • Query Optimization
    • QO 2022-11-14, QO 2022-11-28

    Description

      If the field nested.age is encrypted, we can support queries of the form

      {nested: {$in: [{age: 23, unencrypted: XYZ}, {age: 34, unencrypted: ABC}]}}
      

      By rewriting to $or of multiple $and/$eq.

      Work for this will need to be replicated for both match and agg.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            ted.tuckman@mongodb.com Ted Tuckman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: