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

Provide batch write method #5

Open
MarioArnt opened this issue Oct 3, 2019 · 0 comments
Open

Provide batch write method #5

MarioArnt opened this issue Oct 3, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@MarioArnt
Copy link
Contributor

MarioArnt commented Oct 3, 2019

Currently there is no batch write method.
Provide an overlay over DocumentClient.batchWrite that automatically split array of operations in batch respecting the AWS limitations.

A single BatchWriteItem request can contain up to 25 write requests (PutItem or DeleteItem)

To perform a batch write operation using the AWS SDK DocumentClient v3, you can use the batchWrite method. This method allows you to perform batch write operations on one or more tables in a DynamoDB database.

https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-lib-dynamodb/Class/BatchWriteCommand/

The compatibility with autoCreatedAt and autoUpdatedAt must be maintained with this new method.

@MarioArnt MarioArnt added the enhancement New feature or request label Oct 3, 2019
@MarioArnt MarioArnt added the good first issue Good for newcomers label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant