Re: Are writes to indexes performed asynchronously?

2014-06-22 Thread Jack Krupansky
It would be nice to add that note to the doc. And that leaves open the possibility that this feature may have a bug. -- Jack Krupansky From: DuyHai Doan Sent: Sunday, June 22, 2014 12:01 PM To: user@cassandra.apache.org Subject: Re: Are writes to indexes performed asynchronously? As far as I

Re: Best practices for repair

2014-06-22 Thread Paulo Motta
I'm glad to hear the tool was useful. I just improved the project a bit, you can check it out here: https://github.com/pauloricardomg/cassandra-list-subranges Now you don't need to supply start and end tokens anymore, just the node IP address, and it will automatically fetch start and end tokens f

Re: Are writes to indexes performed asynchronously?

2014-06-22 Thread DuyHai Doan
As far as I remember, 2i index consistency is ensured and repaired at read time to improve performance and avoid the dreadful read-before-write: http://www.datastax.com/dev/blog/improving-secondary-index-write-performance-in-1-2 On Sun, Jun 22, 2014 at 5:24 PM, Jack Krupansky wrote: > The Cas

Re: Are writes to indexes performed asynchronously?

2014-06-22 Thread Jack Krupansky
The Cassandra 2.0 doc says that “Indexes are built in the background automatically, without blocking reads or writes.” IOW, no guarantee that the 2i will have been updated by the time you attempt a query on it. A GC or just general busyness of the node could delay the 2i update, even though it m

Re: Using Cassandra as cache

2014-06-22 Thread Robert Stupp
Am 21.06.2014 um 00:37 schrieb Pavel Kogan : > Thanks, > > Is there any code way to know when the scheme finished to settle down? Yep - take a look at com.datastax.driver.core.ControlConnection#waitForSchemaAgreement in the Java Driver source. It basically compares the 'schema_version' column