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

Add break statement for $reduce

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Optimization

      There are use cases when you need to stop looping over an array once a condition is reached.

      Currently, it is not possible to do that and we are obliged to loop over the entire array even if functionally we could just stop.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            renato.riccio@mongodb.com Renato Riccio
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: