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

Allow specifying bypassDocumentValidation for each $out in an aggregation pipeline

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.6.0
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Query Optimization

      Consider an aggregation pipeline that uses $lookup to write to multiple namespaces via $out:

      db.coll0.aggregate([
          {$lookup: {from: "coll1", pipeline: [{$out: "coll2"}], as: "empty"}},
          {$lookup: {from: "coll3", pipeline: [{$out: "coll4"}], as: "empty"}}
      ], {bypassDocumentValidation: true});
      

      The bypassDocumentValidation specification will apply to all of the target namespaces (coll2 and coll4). If this is a feature we'd like to support, it would be nice to offer the ability to tune the bypassDocumentValidation option on a per-target collection basis.

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

              Created:
              Updated: