Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I improve the speed of the dynamodump import to the target Dynamo DB? #28

Open
cvsudheer108 opened this issue Jun 27, 2022 · 6 comments

Comments

@cvsudheer108
Copy link

Hello,
I have exported data from the source DynamoDB on to a AWS EC2 machine (t3.small) and then trying to import the data to the target Dynamo DB.
I see that it is taking time (1 min for 1 MB ), which might be too much when I add on all my table data.
Is there a way to improve the speed of import?
I see that there I an option to mention the throughput in : dynamodump wipe-data --throughput, but not for was import-data.
Please let me know.

@cvsudheer108
Copy link
Author

I need to migrate the data from one prod account to another and hence can't afford much down time... please advise..

@cvsudheer108
Copy link
Author

1.dynamodata 5MB 1.5 min
2.dynamodata 12MB 7 min
3.dynamodata 32MB 25 min
I see the speed reduces as the size of the file increases..

@Lusitaniae
Copy link
Contributor

Lusitaniae commented Jun 28, 2022 via email

@cvsudheer108
Copy link
Author

I have resolved the issue usign the AWS Backup service. They have a new feature that enables cross account and cross region back-up of Dynamo DB tables. The current Dynamo DB replication supports only the cross-region feature, but not corss account. This video talks about AWS backup settings in detail : https://www.youtube.com/watch?v=dCy7ixko3tE
For DDB backup, we need to enable the following in AWS Backup -> Settings:

  1. Advanced features for Amazon DynamoDB backups - Enable
  2. Cross account-management->Cross-account backup - Enable

@mifi
Copy link
Owner

mifi commented Jun 29, 2022

hi. there should be the --throughput flag for import also. Does it not work?

const throughput = getThroughput(1);

@mifi
Copy link
Owner

mifi commented Jul 2, 2022

I think it needs to rewritten to use aws-sdk-v3 instead, like I just did with cognito-backup: mifi/cognito-backup@431e707

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants