Swap two collections

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

              Assignee:
              Unassigned
              Reporter:
              Azat Khuzhin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: