[SERVER-1307] copy collection Created: 25/Jun/10  Updated: 22/Sep/10  Resolved: 22/Sep/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Kenny Gorman Assignee: Eliot Horowitz (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-732 copyCollection command Closed
Participants:

 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.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 22/Sep/10 ]

See SERVER-732

Comment by Doug Hudson [ 13/Jul/10 ]

I'd very much like to see a "select into" command. Having the target end up optionally in another database would be helpful, although a separate general purpose "move collection to other db" command may be sufficient.

Generated at Thu Feb 08 02:56:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.