[SERVER-45829] Allow agg layer to request PlanStage layer to return document Created: 28/Jan/20  Updated: 06/Dec/22

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

Type: Improvement Priority: Major - P3
Reporter: Ian Boros Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Sprint: Query 2020-02-10, Query 2020-02-24, Query 2020-03-09, Query 2020-03-23
Participants:

 Description   

When there is a finite dependency set, the query system often computes a projection on a BSONObj, returning another BSONObj. In agg, this BSONObj turned into a (lazy) Document, which again copies fields out of the BSON upon individual field access. We could avoid repeating some work if the find() layer produced a Document in these cases instead.

Queries with no finite dependency set will continue to use the "lazy" document behavior.


Generated at Thu Feb 08 05:09:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.