Prevent tombstones creation

前端 未结 3 2009
日久生厌
日久生厌 2021-01-23 16:56

I need to perform an insert to Cassandra table without creating tombstones for any column. I am using a query similar to this :

insert into my_table(col1,col2,col3

3条回答
  •  梦毁少年i
    2021-01-23 17:24

    Assuming you are using prepared statements you can use the "unset" functionality that was introduced in Cassandra 2.2.0, which lets you use leave prepared statement variables without values and without creating tombstones on the server. It is supported in the Java driver 3.0.0 and other drivers.

提交回复
热议问题