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

Swap two collections

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Critical - P2 Critical - P2
    • None
    • None
    • None
    • None

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: