-
Notifications
You must be signed in to change notification settings - Fork 4
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
DynamoDB: Add pagination support for full-load
table loader
#252
Conversation
d7195d3
to
5b595d9
Compare
pyproject.toml
Outdated
"commons-codec>=0.0.12", | ||
"commons-codec @ git+https://github.com/crate/commons-codec.git@dynamodb-full-load-batch", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commons-codec
needs to converge into a release beforehand, after merging crate/commons-codec#43.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commons-codec v0.0.14 has been released.
5b595d9
to
3a98776
Compare
46bbc16
to
0807320
Compare
f853e90
to
ee5ecd8
Compare
a063a5b
to
5747aed
Compare
5747aed
to
d32cabd
Compare
if key is not None: | ||
scan_kwargs.update({"ExclusiveStartKey": key}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This spot, not covered yet, certainly needs a software test. I didn't pay enough attention, and Codecov didn't have access to the repository beforehand, so it did not run a corresponding admonition.
About
For making DynamoDB
full-load
operations more efficient, use CrateDB's bulk operations. With this patch, the batching towards CrateDB is implemented by doing pagination on the DynamoDB source database. For other strategies, see backlog.References
to_sql()
to accept list of records commons-codec#43Backlog
For subsequent iterations:
/cc @wierdvanderhaar, @hlcianfagna