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

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

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Queryable Encryption
    • None
    • Query Optimization
    • QO 2022-11-14, QO 2022-11-28

      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.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            ted.tuckman@mongodb.com Ted Tuckman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: