You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I use the batch operation in application code for doing a series of sets and deletes (potentially leading to an error), and the result will be that either all sets and deletes are done, and the result is positive, or the result is an error and nothing has been done.
I suspect the answer is no, should we have two operations, start_transaction and commit_transaction, where the first would produce a token (to be used as a KV.t), and the second apply a transaction? We can as well have a cancel_transaction... Somehow that'd be a desired semantics for lots of applications. Certainly that'd be more difficult to implement in some backends, so maybe that could also be a separate interface (KV_RW_atomic)? //cc @samoht
The text was updated successfully, but these errors were encountered:
Can I use the
batch
operation in application code for doing a series of sets and deletes (potentially leading to an error), and the result will be that either all sets and deletes are done, and the result is positive, or the result is an error and nothing has been done.I suspect the answer is no, should we have two operations,
start_transaction
andcommit_transaction
, where the first would produce a token (to be used as a KV.t), and the second apply a transaction? We can as well have acancel_transaction
... Somehow that'd be a desired semantics for lots of applications. Certainly that'd be more difficult to implement in some backends, so maybe that could also be a separate interface (KV_RW_atomic)? //cc @samohtThe text was updated successfully, but these errors were encountered: