cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Manuel García del Moral <juanman...@taringa.net>
Subject Re: Atomic Operations
Date Wed, 17 Mar 2010 19:29:27 GMT
Sorry

I have this:
SocialAds.Anonimos['145']['Tag']['12'] = 13

I would need to to

SocialAds.Anonimos['145']['Tag']['12'] += 1

for example

with that, would be enough for now....

I don't want to retrieve the value, do 13+1 in my code, and re-set() it to
14



El 17 de marzo de 2010 16:28, Juan Manuel García del Moral <
juanmanuel@taringa.net> escribió:

> I have this:
> SocialAds.Anonimos['145']['Tag']['12'] =
>
> 2010/3/17 Ted Zlatanov <tzz@lifelogs.com>
>
> On Wed, 17 Mar 2010 16:05:48 -0300 Juan Manuel García del Moral <
>> juanmanuel@taringa.net> wrote:
>>
>> JMGdM> So I would have to retrieve (client.get()) the value, then
>> JMGdM> increment it and update it (client.set()) again? with the
>> JMGdM> inconsistency risk this two operations imply...
>>
>> Can you explain what you are trying to accomplish?  Maybe there's a way
>> to accomplish it without atomic operations.
>>
>> Ted
>>
>>
>

Mime
View raw message