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, 2022 in AWS by Rahul
• 2,080 points
1,333 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, 2022 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, 2022 in AWS by Soham
• 9,700 points
265 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,090 points
6,505 views
0 votes
1 answer
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,090 points
951 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,090 points
528 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, 2022 in AWS by Rahul
• 2,080 points
400 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, 2022 in AWS by anonymous
1,059 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP