--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-user+unsubscribe@lists.datastax.com.
In case you are not familiar with the differences between lightweight transactions and normal write, I'd suggest reading at least this post http://www.datastax.com/dev/blog/lightweight-transactions-in-cassandra-2-0.
On Mon, Dec 19, 2016 at 12:37 AM, a babula <babu...@gmail.com> wrote:
Hi All,
I am new to Cassandra. Here I am facing some issue for INSERT statement. If I use "IF NOT EXISTS" condition to avoid duplicate rows then good number of write queries fail with error "Cassandra timeout during write query at consistency SERIAL (2 replica were required but only 1 acknowledged the write)".
If I remove the IF NOT EXISTS condition from INSERT then all write queries pass but there is a chance of getting overwritten. So is there any option to fix this write failure with this IF NOT EXISTS condition or is there any other option to avoid duplicate rows without using this IF NOT EXISTS condition .
--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.
In case you are not familiar with the differences between lightweight transactions and normal write, I'd suggest reading at least this post http://www.datastax.com/dev/blog/lightweight-transactions-in-cassandra-2-0.
On Mon, Dec 19, 2016 at 12:37 AM, a babula <babu...@gmail.com> wrote:
Hi All,
I am new to Cassandra. Here I am facing some issue for INSERT statement. If I use "IF NOT EXISTS" condition to avoid duplicate rows then good number of write queries fail with error "Cassandra timeout during write query at consistency SERIAL (2 replica were required but only 1 acknowledged the write)".
If I remove the IF NOT EXISTS condition from INSERT then all write queries pass but there is a chance of getting overwritten. So is there any option to fix this write failure with this IF NOT EXISTS condition or is there any other option to avoid duplicate rows without using this IF NOT EXISTS condition .
--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.