For that to happen, we’ll have to append the index mutation to the data mutation, before proposing (them together) to the cluster. The problem with that approach is, we’ll have to do the read in advance to determine what the index mutations should be; which means if we have two data mutations come up, really quickly:
Existing: Robert de-niro
SET → 1, name, Tom hanks
SET → 1, name, Bradley Cooper
Then, both of these would read [Robert de-niro], and attempt to delete it; and both would add 1 to tom hanks and bradley cooper.
That would still cause inconsistent behavior.