cassandra-dev mailing list archives

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

-Priyanka

On Tue, Apr 5, 2016 at 2:50 PM, Sylvain Lebresne <sylvain@datastax.com>
wrote:

> No, this is currently not possible. This is something that is
> likely technically feasible with the LWT mechanism but it
> is not currently supported (and, for info, is not on anyone
> short term todo list as far as I know).
>
> Sorry.
>
> On Tue, Apr 5, 2016 at 10:51 AM, Priyanka Gugale <priyanka@datatorrent.com
> >
> wrote:
>
> > 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