Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mongorestore is very slow on AWS DocumentDB

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

like image 918
Nir Berko Avatar asked Jun 14 '20 07:06

Nir Berko


People also ask

Is DocumentDB fast?

Amazon DocumentDB (with MongoDB compatibility) is a fast, scalable, highly available, and fully managed document database service that supports MongoDB workloads.

How does robo 3T connect to DocumentDB?

Connecting using Robo 3TOpen Robo 3T and choose Create. Copy the cluster endpoint from the cluster. On the Connection tab, enter the cluster endpoint information. On the Authentication tab, enter the authentication information for your cluster.

Is DocumentDB an acid?

ACID Transactions – Amazon DocumentDB now supports the ability to perform transactions across multiple documents, statements, collections, and databases. Transactions simplify application development by enabling you to perform ACID operations across one or more documents within an Amazon DocumentDB cluster.


1 Answers

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.

like image 52
Chris Williams Avatar answered Oct 11 '22 10:10

Chris Williams