How to write 5000 records into DynamoDB Table

0 votes

I have a use case where I have to write 5000 records into dynamoDB table in one shot. I am using batchSave api of DynamoDBMapper Library. it can write upto 25 records in one go. can I pass the list of 5000 records to it and it will internally convert them into batch of 25 records and write to dynamodb table or I will have to handle this thing in my code using conditional some logic and will pass only 25 records to batchSave?

Feb 17 in AWS by Rahul
• 2,080 points
52 views

1 answer to this question.

0 votes

According to documentation use the batchSave() command 

Indeed, it splits up the items you give it into appropriately-sized batches (25 items) and writes them using the DynamoDB BatchWriteItem operation.

You can see the code that does this in batchWrite() in DynamoDBMapper.java:

answered Feb 17 by anonymous

Related Questions In AWS

0 votes
0 answers

How to write 5000 records into DynamoDB Table?

I have a use case where I ...READ MORE

Apr 25 in AWS by Soham
• 8,730 points
13 views
0 votes
1 answer

How to load data into a table in DynamoDB using Java?

You can create a .json file with the ...READ MORE

answered Feb 26, 2019 in AWS by Priyaj
• 58,060 points
4,507 views
0 votes
2 answers
0 votes
1 answer

How to create a DynamoDB table in AWS?

Creating a DynamoDB table is made very ...READ MORE

answered Feb 22, 2019 in AWS by Priyaj
• 58,060 points
402 views
0 votes
1 answer

How to add Item into DynamoDB?

Adding an Item in DynamoDB is just ...READ MORE

answered Feb 22, 2019 in AWS by Priyaj
• 58,060 points
251 views
0 votes
1 answer
0 votes
1 answer

Add a new item to a Dynamodb using a AWS lambda function each time a function is executed with Cloudwatch

The problem here is that the PutItem ...READ MORE

answered Feb 14 in AWS by Rahul
• 2,080 points
42 views
0 votes
1 answer

How to use AWS S3 REST API ListObjects(v2) with multiple parent/child bucket directories?

Here you have to use the ListObjectsV2 ...READ MORE

answered Feb 15 in AWS by anonymous
33 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP