We have a CQL table with approx 20 columns and are using a prepared statement to insert records. The problem is that we do not always have a value to bind for each column so the inserts work but generate a tombstone entry for each column that doesn't have a value; this can result in a large number of tombstones. We could avoid the tombstones by building the inserts with QueryBuilder but then we lose the performance benefit of using prepared statements. Is there anyway to use prepared statements where you don't have a value for each column that doesn't create tombstones?
We're using Cassandra 2.0.7 and Java Driver 2.0.2.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.ThanksPhilip
Phil
So what’s the reason that PreparedStatements create tombstones for null values?
Is there a way to circumvent it besides omitting the column name in the insert statement?
- Drew
ThanksPhilipTo unsubscribe from this group and stop receiving emails from it, send an email to java-dri...@lists.datastax.com.
--:- a)Alex PopescuSen. Product Manager @ DataStax@al3xandru
To unsubscribe from this group and stop receiving emails from it, send an email to java-dri...@lists.datastax.com.
To unsubscribe from this group and stop receiving emails from it, send an email to java-dri...@lists.datastax.com.
To unsubscribe from this group and stop receiving emails from it, send an email to java-dri...@lists.datastax.com.
To unsubscribe from this group and stop receiving emails from it, send an email to java-dri...@lists.datastax.com.
To unsubscribe from this group and stop receiving emails from it, send an email to java-dri...@lists.datastax.com.
--
Olivier Michallat
Driver & tools engineer, DataStax
--
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.