[SERVER-37224] Add break statement for $reduce Created: 20/Sep/18  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Renato Riccio Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Participants:

 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.


Generated at Thu Feb 08 04:45:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.