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

Add break statement for $reduce

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None

      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

            Assignee:
            backlog-query-optimization Backlog - Query Optimization
            Reporter:
            renato.riccio Renato Riccio
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated: