Moving to new DB - Clone Collections

We want to move collection from one database to another on the same server. We have about 30 million documents in each collections. We tried doing it using the bulk insert in C# but its taking very long time. Is there any better way to clone the collections.

Thank you,
SJ

Hi @Jason_Widener1,

Have you looked at mongodump and mongorestore to accomplish this task? The indexes have to be rebuilt if you go down this path, after restoring.

And, regarding the C# program, are you running it on the mongod host? If not, I would give that a try if possible, and compare the run times.

Regards,
Mahi