6

There is any way to make this operation faster?

I'm trying to restore my DB to the AWS DocumentDB, and probably it will take some weeks to finish... my overall data is less than 400MB.

dump is Gzipped

Nir Berko
  • 1,368
  • 1
  • 13
  • 33

1 Answers1

10

To resolve this it was suggested to run the command from an EC2 instance rather than a remote host.

This enabled a speedy import.

The likely reason is the number of network based operations across the internet rather than a local network resource which has shorter latency between each interaction.

Chris Williams
  • 32,215
  • 4
  • 30
  • 68
  • 1
    You can speed up your mongodump by increasing the number of parallel connections using the --numParallelCollections option https://docs.aws.amazon.com/documentdb/latest/developerguide/backup_restore-dump_restore_import_export_data.html – Joseph Idziorek Jun 14 '20 at 13:18