[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:
Depends
is depended on by SERVER-77468 Implement $querySettings agg stage Closed
Related
related to SERVER-77790 Add support for showDebugQueryShape p... Closed
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: SERVER-82128 Add deferred queue behaviour to $queue agg stage
Branch: master
https://github.com/mongodb/mongo/commit/002861907612f4fa51b09ca4479eb3d906dc8ea4

Generated at Thu Feb 08 06:48:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.