[SERVER-5768] Swap two collections Created: 05/May/12  Updated: 15/Aug/12  Resolved: 05/May/12

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

Type: New Feature Priority: Critical - P2
Reporter: Azat Khuzhin Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-1744 renameCollection "to" param as an array Closed
Participants:

 Description   

It will be greate in such feature:

db.swapCollections(from, to)
db.from.swap(to)

This need if you rotate your collections
For example collection for every day

Because "mongodump && delete" is not so fast as just rename



 Comments   
Comment by Scott Hernandez (Inactive) [ 05/May/12 ]

See SERVER-1744

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