cassandra - How exactly batch work in cql -


i going through datastax cql java driver 2.1 driver document , through cql 2.x reference pdf:

in cql reference pdf:

batches atomic default. in context of cassandra batch operation,  atomic means if of batch succeeds, of will.  

in cql java driver pdf:

batch operations batch statement combines multiple data modification statements (insert, update, delete) single logical operation sent server in single request. batching multiple operations ensures these executed in atomic way: either succeed or none. 

so understood first, batch success if single query inside batch sucess.

from second understood batch failed if single query inside batch fails

so exact thing ?

the purpose of logged batches atomicity. if 1 query in batch fails entire batch fail , if batch succeeds, means every query in batch succeeded.

either succeed or none accurate.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -