Bind deleteMany with empty filter on replicated truncate

XMLWordPrintableJSON

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

      This is a placeholder ticket, additionally to the proposed solution it may be needed to adapt change streams to log the truncate event. To double check whether also audit logs may be affected by the change.

      Users often ask whether it would be possible to provide an efficient way to empty a collection without having to recreate it. Currently, deleting all documents is a burden because it results in replicating the _id of every document getting deleted.

      Thanks to the recently introduced replicated truncate (collection & indexes), it looks like we could simply provide this feature by binding on it deleteMany without filter.

            Assignee:
            Unassigned
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: