I want to copy a collection within the same database and give it a different name - basically take a snapshot.
What\'s the best way to do this? Is
The fastest way is db.collection.copyTo().
Note that it is deprecated since version 3.0.