cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Priyanka Gugale <priya...@datatorrent.com>
Subject Lightweight transaction for read and update
Date Tue, 05 Apr 2016 08:51:49 GMT
Hi,

Is there a possibility that we can write a cql statement which can *read a
column value and update it in same transaction* (e.g. column has value 28,
I read it add 7 to it and update column value to 35)? There are some
examples for lightweight transactions
<http://docs.datastax.com/en/cassandra/2.0/cassandra/dml/dml_ltwt_transaction_c.html>
but
from this I couldn't figure out how do I achieve read and update in same
statement.

-Priyanka

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message