[SERVER-55786] Update PartitionIterator memory usage when documents are released Created: 05/Apr/21  Updated: 29/Oct/23  Resolved: 19/May/21

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

Type: Bug Priority: Major - P3
Reporter: Nicholas Zolnierz Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-57130 Traverse arrays while filling the Doc... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0
Sprint: Query Optimization 2021-05-03, Query Optimization 2021-05-17, Query Optimization 2021-05-31
Participants:

 Description   

Logic was added to release documents from the iterator when possible, but the memory usage tracking does not account for it. Relevant code is here.



 Comments   
Comment by Githook User [ 24/May/21 ]

Author:

{'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-55786 Update PartitionIterator memory usage when documents are released

This commit also handles the inflation of Documents as expressions are
evaluated due to the internal caching in the Document class.

(cherry picked from commit be41c9d532346c873c5b909a18fe92e8885337cb)
Branch: v5.0
https://github.com/mongodb/mongo/commit/1a9a9b424d19c914118477bbd245bf3fbf96253d

Comment by Githook User [ 19/May/21 ]

Author:

{'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-55786 Update PartitionIterator memory usage when documents are released

This commit also handles the inflation of Documents as expressions are
evaluated due to the internal caching in the Document class.
Branch: master
https://github.com/mongodb/mongo/commit/be41c9d532346c873c5b909a18fe92e8885337cb

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