[SERVER-63043] Add bounds to batched deletion passes Created: 27/Jan/22  Updated: 29/Oct/23  Resolved: 02/May/22

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

Type: Task Priority: Major - P3
Reporter: Josef Ahmad Assignee: Haley Connelly
Resolution: Fixed Votes: 0
Labels: PM-2227-M3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-04-18, Execution Team 2022-05-02, Execution Team 2022-05-16
Participants:

 Description   

in order to improve fairness when deleting multiple large collections, add targetBytes, targetDocs, targetTimeMS parameters defaulting to infinite.

These parameters differ from the existing batch parameters. A pass can consist of multiple batches. The pass parameters are similar to $limit, in that they limit how much we delete. Instead of only limiting the number of documents deleted, the pass parameters give the flexibility to limit on the time the operation takes and the bytes deleted (potentially) etc.



 Comments   
Comment by Githook User [ 29/Apr/22 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-63043 Add bounds to batched deletion pasess
Branch: master
https://github.com/mongodb/mongo/commit/320e415445fcbac769c7d5124a7b910f6edff827

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