Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
Description
This is a follow-up on CASSANDRA-4545. We've made batch be atomic by default, however it is actually possible for normal inserts to not be atomic by default thanks to the support of the IN notation.
I don't think this is very coherent so I suggest the two following changes:
- make sure normal inserts/deletes are always atomic ("logged")
- make sure we use mutate (rather than mutateAtomically) if there is only one mutation (i.e. use the batch log in normal inserts/deletes only if there is an IN).
And if people really want to do "unlogged" insert with IN, they can put the insert inside an unlogged batch.