Help Center/ Data Replication Service/ Troubleshooting/ Solutions to Failed Check Items/ Database Parameters/ Checking Whether the Source Database Collections Contain More Than 10 Indexes
Updated on 2024-11-30 GMT+08:00

Checking Whether the Source Database Collections Contain More Than 10 Indexes

During MongoDB migration, the number of indexes affects the migration duration. DRS checks whether the source database contains collections with more than 10 indexes. If yes, the migration speed will be affected. Check whether all indexes need to be migrated.

Item to Be Confirmed

The source database has collections containing more than 10 indexes, which are migrated slowly.

Handling Suggestion

The number of indexes affects the migration duration. Check whether all indexes need to be migrated. If an index does not need to be migrated, delete the index before starting the migration.

Run the following command to delete an index:

run the db.Collection name.dropIndex(Index name)