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

Implement getDependencies for $redacts that don't use $$DESCEND

    • Query Optimization

      Currently $redact always says that it doesn't know which fields it needs. This is true if there are any uses of $$DESCEND in the expression since all fields are relative to $$CURRENT which is rebound in each subobject. However, if the $redact expression only uses $$KEEP and $$PRUNE (ie only whole-object redaction) we never rebind $$CURRENT and it is always $$ROOT. In that case we are able to know all of our dependencies which can result in much more efficient execution.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: