Now there are DBA, DBB, DBC, and NewDB in an instance. How to import ABC into NewDB?
The structure is the same. I tried For Insert
and InsertMany
, but the data is close to 500W, and it won’t work after inserting a few items. And the efficiency is too low.
Is there any efficient way?
If it is a copy set, there is a way. It is not very intuitive, but we have renameCollection Command:
Note: Be sure to read the above link before doing it.
Example: