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

feature: implement state capability #7

Open
pnadolny13 opened this issue Apr 11, 2023 · 0 comments
Open

feature: implement state capability #7

pnadolny13 opened this issue Apr 11, 2023 · 0 comments

Comments

@pnadolny13
Copy link
Contributor

No state is tracked as of today.

LastEvaluatedKey + ExclusiveStartKey

I'm not exactly sure how the LastEvaluatedKey attribute works but we already have to use it for paginating within a single scan

start_key = response.get("LastEvaluatedKey", None)
so it might work for incrementally reading across syncs.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-ExclusiveStartKey

FilterExpression

A string that contains conditions that DynamoDB applies after the Scan operation, but before the data is returned to you. Items that do not satisfy the FilterExpression criteria are not returned.

https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Scan.html#DDB-Scan-request-FilterExpression

Stream based

Streams allow you to incrementally request stream data if it hasnt expired yet.
https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetRecords.html. Depends on #6

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

1 participant