-
Type:
Improvement
-
Resolution: Won't Fix
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 1.7.0
-
Component/s: Write Ops
-
None
-
Query
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
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".
- is duplicated by
-
SERVER-5768 Swap two collections
-
- Closed
-