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

Mark constants for encryption in $lookup subpipelines

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Optimization

    Description

      For an aggregation like

      coll.aggregate({$lookup: {from: "coll", as: "docs", pipeline: [{$match: {encryptedField: "1"}}])}}

      We do not mark the constant "1" for encryption in query analysis. But, we allow self-lookups with encrypted collections, so this kind of query should be supported.

      Once this is supported in query analysis, the server-side rewrites should be updated to support rewrites of subpipelines.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            hana.pearlman@mongodb.com Hana Pearlman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: