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
[AWS DynamoDB] Support range key when saving and retrieving an item #3403
Comments
No objections from me (though I do not specialize in AWS components). It sounds useful and implementing via the metadata makes sense. PRs welcome - but if PRs are added a test case should also be added in the certification test under |
Thanks @berndverst, I'm wondering whether the sort key filtering settings should be in the component itself (more discrete) or in the
@yaron2 as usual your opinion is appreciated. |
Can have best of both worlds. Put it in component spec and then check to see if a key was provided on a request metadata and override if it exists |
Yeah I was thinking the same... I'll probably start on the component spec and depending how it goes, expand to request metadata (in same PR or separate) |
Describe the feature
DynamoDB currently doesn't support querying at all and I'm not even sure that's needed for state management.
Having said that, being able to use it for saving a K/V in an append-only ledger kind of mode using a sort/range key as an additional parameter is something we've been missing recently.
Suggested API changes
Component metadata
rangeKey
as optional metadataSaving an item with range key
Getting an item based on partition key and range key predicate
Returns the item with latest timestamp greater than '01-01-2024'
Release Note
RELEASE NOTE: ADD support for range key save/retrieval in DynamoDB state management
The text was updated successfully, but these errors were encountered: