1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hello. Mongodump does not backup the actual indexes, just their definition, a piece of metadata that mongorestore will use to create the type of index on the specified field or fields. The recommended approach is exactly what you tried, pre-create the indexes on the empty collection, then restore with the --noIndexRestore option. This is also preferred because you get faster restore, creating an index on existing data is a single threaded operation which can take a long time on a large dataset. But restoring with a pre-existing index, along with the --numInsertionWorkersPerCollection option (match this with number vCPUs) will yield much faster restore times.
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans