Details
-
Improvement
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
1.7.0
-
None
-
Query
Description
Change renameCollection to support an array of collection names as the destination(s) so that you don't delete the destination collection.
That would support a primary collection with some postfix value (like a number) of "archived" collections. You could do something like this:
{renameCollection:'log", to:["log.1", "log.2"]}(much like log rotation)
Maybe this would be better as a new command called "moveCollection".
Attachments
Issue Links
- is duplicated by
-
SERVER-5768 Swap two collections
-
- Closed
-