[SERVER-79321] Change type of _materializedPartition to better reflect the contents Created: 25/Jul/23  Updated: 13/Nov/23  Resolved: 13/Nov/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Naafiyan Ahmed (Inactive) Assignee: Santiago Roche
Resolution: Fixed Votes: 0
Labels: former-pm-2885, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-85065 Tracking: M3 Tech Debt Tickets Closed
Assigned Teams:
Query Integration
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Change the type of _materialized partition to more accurately reflect the contents instead of being a deque of generic Documents. One suggestion is to change the type to `std::vector<std::pair<size_t, QueryStatsEntry>>` or having a struct to more accurately represent the contents.

Investigate whether there are any significant memory advantages to storing a vector of QueryStatsEntry as opposed to fully filled out Documents



 Comments   
Comment by Charlie Swanson [ 13/Nov/23 ]

santiago.roche@mongodb.com it looks like we can close this one?

Comment by Githook User [ 06/Nov/23 ]

Author:

{'name': 'Santiago Roche', 'email': 'santiago.roche@mongodb.com', 'username': ''}

Message: SERVER-79321: Refactor DocumentSourceQueryStats::doGetNext().
Branch: master
https://github.com/mongodb/mongo/commit/095011ae40c340c31c70a2c5fbf860882308dc02

Comment by Charlie Swanson [ 04/Oct/23 ]

Moving this out of PM-2885 and into "Needs Scheduling" as a proposal to put this on the "quick-tech-debt" backlog instead. 

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