[SERVER-82128] Add deferred queue behaviour to $queue agg stage Created: 12/Oct/23 Updated: 21/Nov/23 Resolved: 21/Nov/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.3.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Catalin Sumanaru | Assignee: | Catalin Sumanaru |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | M1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Sprint: | QE 2023-10-16, QE 2023-11-13, QE 2023-11-27 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
The issue is the fact that DocumentSources do not have open/close() like API, but rather doGetNext() only which makes it complicated to do any prepare work. $querySettings is suffering from this, being able to go into infinite recursion because of it. As part of this ticket we will extend the $queue operator to be able to produce elements by invoking a lambda function instead of taking a collection of documents as input. This implementation will enable us to rely on this functionality instead of implementing custom solutions as present in:
|
| Comments |
| Comment by Githook User [ 21/Nov/23 ] |
|
Author: {'name': 'csum112', 'email': 'catalin.sumanaru@mongodb.com', 'username': ''}Message: |