Fastest way to duplicate mongodb collection

db.myoriginal.aggregate([ { $out: "myCopy" } ])

db.runCommand({

aggregate: "myOriginal",

pipeline: [{ $match: {} }, { $out: "myCopy" }]

});

评论

暂无评论