AWS boto3 — Difference between `batch_writer` and `batch_write_item`

0 votes
I'm currently applying boto3 with dynamodb, and I noticed that there are two types of batch write

batch_writer is used in tutorial, and it seems like you can just iterate through different JSON objects to do insert (this is just one example, of course)

batch_write_items seems to me is a dynamo-specific function. However, I'm not 100% sure about this, and I'm not sure what's the difference between these two functions (performance, methodology, what not)

Do they do the same thing? If they are, why having 2 different functions? If they're not, what's the difference? How's the performance comparison?
Sep 25, 2018 in AWS by bug_seeker
• 15,510 points
1,547 views

1 answer to this question.

0 votes

As far as I understand and use these APIs, with the batch_write_item(), you can even handle the data for more than one table in one query. But with batch_writer(), it means you are going to specify the actions are only applicable for a certain table. I think that should be the very basic difference I can tell you.

answered Sep 25, 2018 by Priyaj
• 57,700 points

Related Questions In AWS

0 votes
1 answer

Difference between AWS S3 and Amazon Storage Gateway

Basically AWS S3 is a file system. It ...READ MORE

answered Aug 4, 2018 in AWS by Archana
• 4,150 points
1,441 views
0 votes
1 answer
+1 vote
1 answer

What is the difference between an Instance, AMI and Snaphots in AWS?

AMI is the Amazon Machine Image which provides ...READ MORE

answered May 24, 2019 in AWS by ArchanaNagur
• 2,340 points
1,084 views
0 votes
1 answer

What is the difference between aws system manager and aws cloudwatch?

Hi@Edureka, AWS Systems Manager is an AWS service that you can ...READ MORE

answered Sep 21 in AWS by MD
• 67,760 points
89 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,770 points
1,303 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 57,700 points
1,340 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 57,700 points
2,210 views
0 votes
2 answers
0 votes
1 answer
+1 vote
1 answer

difference between client and resource in boto3

The main difference between Client and Resources ...READ MORE

answered Mar 1, 2019 in AWS by Priyaj
• 57,700 points
5,478 views