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

Server-side rewrite for find command on mongos

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • QO 2022-03-21, QO 2022-04-04

      From the design:

      Find commands are always parsed on mongos. After the user's find command has been parsed into a CanonicalQuery in ClusterFindCmd::run() and we've determined that there may be FLE2 rewrites to be done, and we are inside of a transaction, rewriteQueryOnEncryptedFields() will be called before ClusterFind::runQuery(). rewriteQueryOnEncryptedFields() will make queries to the encrypted state collections in order to rewrite the MatchExpression query before passing it on to ClusterFind::runQuery() as normal.

            Assignee:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Reporter:
            davis.haupt@mongodb.com Davis Haupt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: