[SERVER-30215] Factor out logic to build a batch using a cursor/PlanExecutor Created: 18/Jul/17  Updated: 27/Feb/23

Status: Backlog
Project: Core Server
Component/s: Aggregation Framework, Querying
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 1
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Sprint: Query 2017-07-31, Query 2017-08-21, Query 2020-08-24
Participants:

 Description   

There are several places in the codebase where we have a PlanExecutor and a CursorResponse (or a bare BSONObjBuilder being used to build a cursor response), and loop over the results of the PlanExecutor until we have enough for a batch. We examine all these places and see if we can factor out some of the similarities into a helper function.

Some examples include:



 Comments   
Comment by Charlie Swanson [ 18/Jul/17 ]

This came up because bernard.gorman is adding yet another place that does similar logic as part of SERVER-22760

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