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

Making multiple table update atomic #184

Open
hlms opened this issue Jan 20, 2015 · 3 comments
Open

Making multiple table update atomic #184

hlms opened this issue Jan 20, 2015 · 3 comments

Comments

@hlms
Copy link

hlms commented Jan 20, 2015

I need to update multiple tables through dynamoid.
Is there any way to make such transaction atomic?

For example, for a particular operation, I'm updating tables t1, t2, t3.
If update in t1, t2 succeeds but if it fails for t3, it should revert the update in t1 and t2?
Any way to do this in dynamoid?

@ngordon17
Copy link

No. You'd need to use another framework to do transactions or implement them yourself.
Transactions are also really inefficient in Dynamo, you probably don't want to use them unless you really need to.

@hlms
Copy link
Author

hlms commented Mar 21, 2015

Can someone name any framework which can be helpful in this case?
Does AWS SDK v2 provide transaction facility?

@ngordon17
Copy link

There's one provided byAWS for Java, but to my knowledge none for Ruby. You'd have to create your own.

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

2 participants