-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:We've seen some cases of people trying to use db.collection.remote() instead of .drop() so that they won't lose indexes and sharding/chunk information. Would it make sense to support something equivalent to SQL TRUNCATE TABLE command which dumps the data from a collection (and indexes) but does not remove index definitions or sharding meta-data?
We've seen some cases of people trying to use db.collection.remote() instead of .drop() so that they won't lose indexes and sharding/chunk information. Would it make sense to support something equivalent to SQL TRUNCATE TABLE command which dumps the data from a collection (and indexes) but does not remove index definitions or sharding meta-data?
- duplicates
-
SERVER-1773 truncate command to provide removal of all documents without removal of metadata
- Closed