copy collection

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

                Created:
                Updated:
                Resolved: