[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: |
|
||||||||||||
| 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. |