Prevent tombstones creation

前端 未结 3 2052
日久生厌
日久生厌 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条回答
  •  遇见更好的自我
    2021-01-23 17:39

    If you insert null values, Cassandra will create tombstones. If you know that col3 will be null, don't use it in your query.

    insert into my_table(col1,col2) values(val1,val2)
    

    I would suggest two really good articles on the subject

    • Common Problems with Cassandra Tombstones
    • About Deletes and Tombstones in Cassandra.

提交回复
热议问题