Created
June 16, 2016 23:09
-
-
Save tejzpr/ff37324a8c26d13fef08c318278c0718 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Fastest way to copy a Collection in MongoDB | |
db.getCollection('OriginalCollection').aggregate([ { $out: "ClonedCollection" } ]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment