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] Provide conditions for Datastore updates #410

Open
YutaUra opened this issue Jan 29, 2025 · 1 comment
Open

[FEATURE] Provide conditions for Datastore updates #410

YutaUra opened this issue Jan 29, 2025 · 1 comment
Labels
backend Slack backend issue feature request New feature or request

Comments

@YutaUra
Copy link

YutaUra commented Jan 29, 2025

Dynamodb has a feature called conditional put.
This feature is particularly effective in preventing the updated value from being unintentionally updated with the immediately following value when multiple simultaneous puts are made, thus preventing update conflicts in Dynamodb where no transactions exist. It is possible to safely update data by performing appropriate retries on the API caller's side.

Currently, Datastore does not have this functionality and cannot control the behavior of simultaneous updates.

Provide functions like Dynamodb's conditional put.
Or provide values such as updateAt, version, etc. as conditional_token and accept them at API call time to internally condition that they match.

@WilliamBergamin WilliamBergamin added feature request New feature or request backend Slack backend issue labels Jan 29, 2025
@WilliamBergamin
Copy link
Contributor

WilliamBergamin commented Jan 29, 2025

Hi @YutaUra thanks for pointing this out 💯

I've flagged this as a feature request, but it does seem like some backend changes may be needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Slack backend issue feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants