[SERVER-3334] Stop processing bson fields in projection.transform after projections met (esp. _id) Created: 24/Jun/11  Updated: 06/Dec/22

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

Type: Improvement Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 5
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-14050 Exit BSON parsing early on retrieving... Backlog
related to SERVER-5022 full document always loaded for match... Closed
Assigned Teams:
Query Execution
Participants:

 Description   

Currently the projection code loops through all the fields even if the projections have been satisfied. This leads to more reads (and possible page faults) than are needed to fullfil the projection.

It would be good to shortcut this esp. for _id when just wanting to return that.


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