[SERVER-8075] Support truncate for removing all documents from collections leaving meta-info Created: 04/Jan/13  Updated: 01/Apr/13  Resolved: 04/Jan/13

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Asya Kamsky Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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?


Issue Links:
Duplicate
duplicates SERVER-1773 truncate command to provide removal o... Closed
Participants:

 Comments   
Comment by Eliot Horowitz (Inactive) [ 04/Jan/13 ]

SERVER-1773

Generated at Thu Feb 08 03:16:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.