Re: Atomic Compare and Swap

2010-06-20 Thread Sriram Srinivasan
I too am interested in a CAS facility. I like Rishi's proposal. One could simply use a version number as the logical timestamp. If we promote CAS to a consistency level, it would rate higher than a quorum. One pays the price for a more complex write path to obtain the requisite guarantee.

Re: Atomic Compare and Swap

2010-06-20 Thread Rishi Bhardwaj
Hi David You are right that the write path for atomic compare and swap would become as slow as the read path but that would be for compare and swap operation only. In general the writes can remain fast and need not be changed in any way. I mean we don't have to slow down writes, only the compar

Re: Atomic Compare and Swap

2010-06-20 Thread David Timothy Strauss
That is impossible to implement without making the write path at least as slow as the read path. Things like this typically get layed on Cassandra by using an external locking framework, like Zookeeper. -Original Message- From: Rishi Bhardwaj Date: Sun, 20 Jun 2010 14:57:46 To: Reply-

Atomic Compare and Swap

2010-06-20 Thread Rishi Bhardwaj
Hi I was wondering if Cassandra has any plans for supporting atomic compare and swap operation on a column value? Compare could be on timestamp for the column or the column value itself and the write of course is on the column value + a new timestamp. If there are no plans on supporting such an