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,350 points
471 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
• 56,920 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,090 points
275 views
0 votes
1 answer
+1 vote
1 answer
+2 votes
10 answers

Difference between s3n, s3a and s3?

S3 Native FileSystem (URI scheme: s3n) A ...READ MORE

answered Oct 25, 2018 in AWS by Rishab rohan
8,506 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,560 points
469 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
• 56,920 points
297 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
• 56,920 points
671 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 in AWS by Priyaj
• 56,920 points
823 views