datastax - Is it possible to do sequential batch in cassandra. -


is possible sequential batch in cassandra. eg: insert table1 , take uuid insert operation , pass table2 insert statement. if table 2 insert fails, fail entire operaion.

if not , whats best option?

(its kind of transactional)

you'r best shot cassandra batch statement: batch - cassandra documentation

combined "if exists" constraints (like here: delete - cassandra documentation) may need.

however, don't believe there possibility "insert table1 , take uuid insert operation , pass table2 insert statement". can think of batches in c* transactions in sql - it's executed or not.

important things note:

  • batches can span multiple tables in c*
  • although batches atomic, not isolated. portion of batch can executed, in query can read changes, may happen revoked because batch fail.

Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -