You can use the `transactionSync()`
You can use the
The error handling is not as clear cut though. You might need to handle the error in your worker calling the DO to make sure all exceptions are caught during that DO transaction. Using the above method guarantees that you won't have partial writes.
transactionSync() https://developers.cloudflare.com/durable-objects/api/storage-api/#transactionsync if you want to control when the writes happen.The error handling is not as clear cut though. You might need to handle the error in your worker calling the DO to make sure all exceptions are caught during that DO transaction. Using the above method guarantees that you won't have partial writes.
