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

Add break statement for $reduce

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Query Optimization

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            renato.riccio@mongodb.com Renato Riccio
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated: