Re: Consistency question caused by Read_all and Write_one

2010-12-14 Thread Tyler Hobbs
Could you give more details on what you're trying to do? This sounds like a case where a UUID will give you what you need without needing to lock. - Tyler On Tue, Dec 14, 2010 at 10:24 AM, Alvin UW wrote: > Thanks. > It is very helpful. > > I think I'd like to write to the same column. > > Wou

Re: Consistency question caused by Read_all and Write_one

2010-12-14 Thread Alvin UW
Thanks. It is very helpful. I think I'd like to write to the same column. Would you please give me more details about your last sentence? For example, why can't I use locking mechanism inside of cassandra? Thanks. Alvin 2010/12/13 Aaron Morton > In your example is a little unclear. > > If yo

Re: Consistency question caused by Read_all and Write_one

2010-12-13 Thread Aaron Morton
In your example is a little unclear. If you are writing to a single row and creating columns with user names. Then when you read all the columns for row 1 you will get columns called Dan and Ken. If you are writing to the same column, let's say called user, then *if* they are send with the sam

Re: Consistency question caused by Read_all and Write_one

2010-12-13 Thread Alvin UW
Yes, the same timestamp 2010/12/10 Ryan King > On Fri, Dec 10, 2010 at 12:49 PM, Alvin UW wrote: > > Hello, > > > > > > I got a consistency problem in Cassandra. > > > > Given a column family with a record:Id Name > > 1David > >

Re: Consistency question caused by Read_all and Write_one

2010-12-10 Thread Ryan King
On Fri, Dec 10, 2010 at 12:49 PM, Alvin UW wrote: > Hello, > > > I got a consistency problem in Cassandra. > > Given a column family with a record:    Id   Name >     1    David > > There are three backups for this column family. > > Assume there

Re: Consistency question caused by Read_all and Write_one

2010-12-10 Thread Peter Schuller
> Assume there are two write operation happens issued by the same application > by this order: write_one("1", "Dan") ; write_one("1", "Ken"). > What will Read_all("1") get? Assuming read_all means reading at consistency level ALL, it sees the latest value ("Ken"). > Assume the above two write ope

Consistency question caused by Read_all and Write_one

2010-12-10 Thread Alvin UW
Hello, I got a consistency problem in Cassandra. Given a column family with a record:Id Name 1David There are three backups for this column family. Assume there are two write operation happens issued by the same application by t