Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 68150 invoked from network); 17 Mar 2010 19:29:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 19:29:55 -0000 Received: (qmail 91209 invoked by uid 500); 17 Mar 2010 19:29:54 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 91187 invoked by uid 500); 17 Mar 2010 19:29:54 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 91179 invoked by uid 99); 17 Mar 2010 19:29:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 19:29:54 +0000 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=AWL,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.223.188] (HELO mail-iw0-f188.google.com) (209.85.223.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 19:29:49 +0000 Received: by iwn26 with SMTP id 26so1234391iwn.9 for ; Wed, 17 Mar 2010 12:29:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.182.206 with SMTP id cd14mr58285ibb.39.1268854167871; Wed, 17 Mar 2010 12:29:27 -0700 (PDT) In-Reply-To: <9ad76c4d1003171228g664d396ewd79fc72e9f2e0a31@mail.gmail.com> References: <9ad76c4d1003171158o6cc68523u935cc134283f4299@mail.gmail.com> <9ad76c4d1003171205y3c2b83a0s6a498996df876bd5@mail.gmail.com> <87sk7yda47.fsf@lifelogs.com> <9ad76c4d1003171228g664d396ewd79fc72e9f2e0a31@mail.gmail.com> Date: Wed, 17 Mar 2010 16:29:27 -0300 Message-ID: <9ad76c4d1003171229w548f6899yed14bb548fcf1df2@mail.gmail.com> Subject: Re: Atomic Operations From: =?ISO-8859-1?Q?Juan_Manuel_Garc=EDa_del_Moral?= To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016363b9124f2a61f048204216f --0016363b9124f2a61f048204216f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sorry I have this: SocialAds.Anonimos['145']['Tag']['12'] =3D 13 I would need to to SocialAds.Anonimos['145']['Tag']['12'] +=3D 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=EDa del Moral < juanmanuel@taringa.net> escribi=F3: > I have this: > SocialAds.Anonimos['145']['Tag']['12'] =3D > > 2010/3/17 Ted Zlatanov > > On Wed, 17 Mar 2010 16:05:48 -0300 Juan Manuel Garc=EDa 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 >> >> > --0016363b9124f2a61f048204216f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sorry

I have this:
SocialAds.Anonimos['145']['Tag= 9;]['12'] =3D 13

I would need to to

SocialAds.Anonim= os['145']['Tag']['12'] +=3D 1

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

I don't want to retri= eve 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=EDa = del Moral <j= uanmanuel@taringa.net> escribi=F3:
I have this:
S= ocialAds.Anonimos['145']['Tag']['12'] =3D

<= div class=3D"gmail_quote"> 2010/3/17 Ted Zlatanov <tzz@lifelogs.com>

On Wed, 17 Mar 20= 10 16:05:48 -0300 Juan Manuel Garc=EDa 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? =A0Maybe there's a w= ay
to accomplish it without atomic operations.

Ted



--0016363b9124f2a61f048204216f--