Re: Atomic Operations in Cassandra

2011-12-11 Thread Sylvain Lebresne
On Sun, Dec 11, 2011 at 12:01 PM, Boris Yen wrote: > Hi Sylvain, > > "Writes under the same row key are atomic (even across column families) in > the > sense that they are either all persisted or none are." > > Is this new feature for 1.x, or it also applies to previous version of > Cassandra? It

Re: Atomic Operations in Cassandra

2011-12-11 Thread Boris Yen
Hi Sylvain, "Writes under the same row key are atomic (*even across column families*) in the sense that they are either all persisted or none are." Is this new feature for 1.x, or it also applies to previous version of Cassandra? Boris On Thu, Dec 8, 2011 at 6:40 PM, Sylvain Lebresne wrote: >

Re: Atomic Operations in Cassandra

2011-12-08 Thread Sylvain Lebresne
On Thu, Dec 8, 2011 at 12:57 AM, Christof Bornhoevd wrote: > Hi All, > > I'm using Cassandra 1.0.3 (with Hector 0.7). What is the granularity of > atomic read and write operations with Cassandra. I.e. is the insert or > update of an individual column an atomic operation (in the sense that it > eit

Atomic Operations in Cassandra

2011-12-07 Thread Christof Bornhoevd
Hi All, I'm using Cassandra 1.0.3 (with Hector 0.7). What is the granularity of atomic read and write operations with Cassandra. I.e. is the insert or update of an individual column an atomic operation (in the sense that it either fails or persists completely), or is the insert or update of an ent

Re: Atomic Operations

2010-03-17 Thread Ted Zlatanov
On Wed, 17 Mar 2010 16:44:50 -0300 Juan Manuel García del Moral wrote: JMGdM> That's exactly what I need, Do you have an idea how can I JMGdM> implement this through the C++ API? Sorry, I've only worked with the Java and Perl interfaces. I'll have to use Cassandra with C++ later this year (lo

Re: Atomic Operations

2010-03-17 Thread Juan Manuel García del Moral
also += 1 was just an example, it could be += N, += 15 or whatever, it depends on certain conditions , but I think it would work as well El 17 de marzo de 2010 16:44, Juan Manuel García del Moral < juanman...@taringa.net> escribió: > That's exactly what I need, Do you have an idea how can I impl

Re: Atomic Operations

2010-03-17 Thread Juan Manuel García del Moral
That's exactly what I need, Do you have an idea how can I implement this through the C++ API? Many thanks 2010/3/17 Ted Zlatanov > On Wed, 17 Mar 2010 16:29:27 -0300 Juan Manuel García del Moral < > juanman...@taringa.net> wrote: > > JMGdM> I have this: > JMGdM> SocialAds.Anonimos['145']['Tag'

Re: Atomic Operations

2010-03-17 Thread Ted Zlatanov
On Wed, 17 Mar 2010 16:29:27 -0300 Juan Manuel García del Moral wrote: JMGdM> I have this: JMGdM> SocialAds.Anonimos['145']['Tag']['12'] = 13 JMGdM> I would need to to JMGdM> SocialAds.Anonimos['145']['Tag']['12'] += 1 JMGdM> for example JMGdM> with that, would be enough for now JMGdM>

Re: Atomic Operations

2010-03-17 Thread Juan Manuel García del Moral
6:05:48 -0300 Juan Manuel García del Moral < >> juanman...@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 >> >> >

Re: Atomic Operations

2010-03-17 Thread Juan Manuel García del Moral
hen > 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 > >

Re: Atomic Operations

2010-03-17 Thread Ted Zlatanov
re trying to accomplish? Maybe there's a way to accomplish it without atomic operations. Ted

Re: Atomic Operations

2010-03-17 Thread Jesse McConnell
ya, this access pattern doesn't really ring true for cassandra, at least imo jesse -- jesse mcconnell jesse.mcconn...@gmail.com On Wed, Mar 17, 2010 at 14:14, Ned Wolpert wrote: > I could be wrong, but I would say that even if the thrift syntax gave you a > 'get/set' you want, you would still

Re: Atomic Operations

2010-03-17 Thread Ned Wolpert
I could be wrong, but I would say that even if the thrift syntax gave you a 'get/set' you want, you would still have the 'inconsistency' risk primarily because of the Eventually Consistency ( http://www.allthingsdistributed.com/2008/12/eventually_consistent.html) as implementation in Cassandra. (No

Re: Atomic Operations

2010-03-17 Thread Sandeep Kalidindi
@juan - for now yes. But as far as i remember, some guys from Digg are trying to implement counters. Don't know how complete it is and when it can be available. But for now such feature is not there. Cheers, Deepu. 2010/3/18 Juan Manuel García del Moral > So I would have to retrieve (client.ge

Re: Atomic Operations

2010-03-17 Thread Juan Manuel García del Moral
So I would have to retrieve (client.get()) the value, then increment it and update it (client.set()) again? with the inconsistency risk this two operations imply... annoying thanks for your help 2010/3/17 Jesse McConnell > afaik, nope > > -- > jesse mcconnell > jesse.mcconn...@gmail.com >

Re: Atomic Operations

2010-03-17 Thread Jesse McConnell
afaik, nope -- jesse mcconnell jesse.mcconn...@gmail.com 2010/3/17 Juan Manuel García del Moral : > Hello > > I would like to know if there is any method available to update > (increment/decrement) INTEGER values in Columns/SuperColumns, and how I can > use this method thru the C++ API > > Than

Atomic Operations

2010-03-17 Thread Juan Manuel García del Moral
Hello I would like to know if there is any method available to update (increment/decrement) INTEGER values in Columns/SuperColumns, and how I can use this method thru the C++ API Thanks Juan