[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: |
|
||||||||
| Participants: | |||||||||
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 04/Jan/13 ] |