How do atomic batches work in Cassandra?

前端 未结 3 1637
忘掉有多难
忘掉有多难 2020-12-09 03:54

How can atomic batches guarantee that either all statements in a single batch will be executed or none?

3条回答
  •  温柔的废话
    2020-12-09 04:59

    Cassandra batches:-

    http://docs.datastax.com/en/cql/3.1/cql/cql_reference/batch_r.html

    To add to above answers:- With Cassandra 2.0, you can write batch statements + LWT. The restriction though is that all DMLs must be on same partition

提交回复
热议问题