Evaluate doing batched capped deletes in CollectionImpl::_cappedDeleteAsNeeded

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, deleting documents in '_cappedDeleteAsNeeded' happens in one transaction. As a result of SERVER-1864, this could be costly in the case where the newly set cappedSize decreases past the collections current size.

      SERVER-1864 holds off on deleting documents until the next insert into the collection. After inserting, we check if deletions are needed and delete documents until the total size < cappedSize in one transaction. 

            Assignee:
            [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            Fausto Leyva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: