Im interested if there is any possibility to create transactions in couchbase and than commit it.
My scenario is:
- Get some data
- Lock it
- Update first document
- Update second document
- If both update well then commit it
For me its very important to update several document if one fail i need to rollback second.
Please help me to figure out this issue.
Thank you in advance.
Couchbase provides several locking and durability primitives using which you can build transactions in the application layer. You may find the following blog helpful:
Couchbase is also exploring native support of transactions in a future release. Please reach out to me (email@example.com) directly if you would like to discuss more about your use case.