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

Return unprocessed items for BatchWriteItem operation #117

Open
zeako opened this issue Jan 29, 2020 · 4 comments
Open

Return unprocessed items for BatchWriteItem operation #117

zeako opened this issue Jan 29, 2020 · 4 comments

Comments

@zeako
Copy link

zeako commented Jan 29, 2020

Currently the function only returns wrote, err wouldn't it be more valuable to also add the unprocessed items which will enable the client to handle partial success better?

with wrote we only get an indication, but we can't really tell which items didn't get through

@guregu
Copy link
Owner

guregu commented Jan 29, 2020

It automatically retries until all the unprocessed items are handled, but yeah I suppose this could be useful if your network dies partway through or something.
It does put all the items in the order you gave them, but I’m not sure if the DynamoDB backend processes them out of order. It is idempotent so worst case scenario you can redo the whole batch.
I’m going to do rewrite the Batch APIs soonish and I’ll keep this in mind.

@zeako
Copy link
Author

zeako commented Jan 29, 2020

Will be glad to partake.
Working with dynamodb api directly is just painful

@zzerjae
Copy link

zzerjae commented Feb 1, 2021

any progress here~?

@mingrammer
Copy link

Any progress?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants