SyntaxFix
Write A Post
Hire A Developer
Questions
The above process is slow,you can use below method but you need to move collection by collection to another db.
use admin db.runCommand({renameCollection: "[db_old_name].[collection_name]", to: "[db_new_name].[collection_name]"})