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

copy collection

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None

    Description

      It would be fantastic to have a feature similar to CREATE TABLE AS SELECT inside mongo. A server side fast non-blocking/locking process that copies one collection to another collection.

      db.foo2.save( db.foo1.find().sort(

      {"owner":-1}

      ) )

      It would also be nice if it worked with .snapshot()

      Indexes could be created online with existing functionality, so indexes do not need to be replicated.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            kgorman Kenny Gorman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: