Skip to content

Is applyWrites allowed to split operations across multiple commits? #1655

Discussion options

You must be logged in to vote

I think there are hypothetical situations where having multiple ops together would be important.

Yeah, there definitely are 👍 One example is creating a post with an associated threadgate (#1561). Clients want to ensure that both of those records are created in a single write, so that there's no commit on which the repository reflects the post record without its threadgate. Another concrete example is if we had upvotes and downvotes: switching an upvote to a downvote might consist of a write that deletes the upvote and creates the downvote.

In my view data integrity is difficult enough in the distributed setting that we should hold on tight to the facilities that we do have to help clien…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@devinivy
Comment options

Answer selected by bnewbold
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants