[SERVER-53712] Implement mechanism to free documents in partition which are no longer needed Created: 12/Jan/21  Updated: 29/Oct/23  Resolved: 23/Mar/21

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

Type: Task 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

Backwards Compatibility: Fully Compatible
Sprint: Query Optimization 2021-03-08, Query Optimization 2021-03-22, Query Optimization 2021-04-05
Participants:

 Description   

This is a memory optimization to allow the PartitionIterator to detect when all consumers have accessed past a certain document, and thus the document can be released.

Some options considered are:

  • A registration mechanism for consumers, such that the iterator is aware of the greatest accessed index
  • Add an expire(int index) method such that the individual WindowManagers can signal when they're done with a document


 Comments   
Comment by Githook User [ 23/Mar/21 ]

Author:

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

Message: SERVER-53712 Track and release documents from PartitionIterator when possible
Branch: master
https://github.com/mongodb/mongo/commit/a157c49c284964db659fccd8ba5666d72a689006

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