race condition for quorum consistency

2016-09-14 Thread Qi Li
hi all, we are using quorum consistency, and we *suspect* there may be a race condition during the write. lets say RF is 3. so write will wait for at least 2 nodes to ack. suppose there is only 1 node acked(node A). the other 2 nodes(node B, C) are still waiting to update. there come two read requ

Re: Wide row in Cassandra

2016-01-28 Thread Qi Li
ria will be 'uuid'. > > SELECT value1,..., valueN FROM data > WHERE partition = uuid > > 2. Query for the Double in mapValue. The query criteria will be 'uuid' + > 'key' in mapValue > > SELECT mapValue FROM data WHERE partition = uuid AND mapKey =

Re: Wide row in Cassandra

2016-01-28 Thread Qi Li
gt; the guide to data modeling. So... how do you need to access the data? What > columns do you need to be able to query on vs. merely return? What data > needs to be accessed at the same time? What data does not need to be > accessed at the same time? > > -- Jack Krupansky > >

Wide row in Cassandra

2016-01-28 Thread Qi Li
Hi all, I've found something in Internet, but still want to consult with your expertise. I'm designing a table, the object model will be like, class Data{ String uuid;//partition key String value1; String value2; ... String valueN; Map mapValues; } For one