-
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.
- depends on
-
SERVER-111540 Storage API for truncating all data in a collection and its indexes
-
- Backlog
-
- is related to
-
SERVER-15274 Implement remove({}) as Collection::truncate()
-
- Backlog
-