Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1744

renameCollection "to" param as an array

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 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".

            Assignee:
            backlog-server-query Backlog - Query Team (Inactive)
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: