Re: Atomicity of batch updates

2011-06-16 Thread aaron morton
See http://wiki.apache.org/cassandra/FAQ#batch_mutate_atomic

Cheers

-
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 16 Jun 2011, at 06:26, chovatia jaydeep wrote:

 Cassandra write operation is atomic for all the columns/super columns for a 
 given row key in Column Family. So in your case not all previous operations 
 (assuming each operation was on separate key) will be reverted.
 
 Thank you,
 Jaydeep
 
 From: Artem Orobets artem.orob...@exigenservices.com
 To: user@cassandra.apache.org user@cassandra.apache.org
 Cc: Andrey Lomakin andrey.loma...@exigenservices.com
 Sent: Wednesday, 15 June 2011 7:42 AM
 Subject: Atomicity of batch updates
 
 Hi,
 Wiki says that write operation is atomic within ColumnFamily 
 (http://wiki.apache.org/cassandra/ArchitectureOverview chapter “write 
 properties”).
 If I use batch update for single CF, and get an exception in last mutation 
 operation, is it means that all previous operation will be reverted.
 If no, what means atomic in this context?
 
 



Atomicity of batch updates

2011-06-15 Thread Artem Orobets
Hi,
Wiki says that write operation is atomic within ColumnFamily 
(http://wiki.apache.org/cassandra/ArchitectureOverview chapter write 
properties).
If I use batch update for single CF, and get an exception in last mutation 
operation, is it means that all previous operation will be reverted.
If no, what means atomic in this context?


Re: Atomicity of batch updates

2011-06-15 Thread chovatia jaydeep
Cassandra write operation is atomic for all the columns/super columns for a 
given row key in Column Family. So in your case not all previous operations 
(assuming each operation was on separate key) will be reverted.

Thank you,
Jaydeep




From: Artem Orobets artem.orob...@exigenservices.com
To: user@cassandra.apache.org user@cassandra.apache.org
Cc: Andrey Lomakin andrey.loma...@exigenservices.com
Sent: Wednesday, 15 June 2011 7:42 AM
Subject: Atomicity of batch updates


 
Hi,
Wiki says that write operation is atomic within ColumnFamily
(http://wiki.apache.org/cassandra/ArchitectureOverview chapter “write 
properties”).
If I use batch update for single CF, and get an exception in
last mutation operation, is it means that all previous operation will be
reverted.
If no, what means atomic in this context?