Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78665

Implement replicated truncates for collections

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

      There are some use-cases where truncating the contents of a collection makes sense. This today is being done by performing a coll.deleteMany without a filter, resulting in multiple oplog delete entries being created/replicated and taking a long time to process.

      Performing a truncate on a collection would delete the contents of a collection plus all indexes in this situation.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: