Prevent tombstones creation

前端 未结 3 2010
日久生厌
日久生厌 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:25

    Don't include col3 in your insert and it just wont set anything.

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

    If curious about structure on disk, do a nodetool flush and run sstabledump on the sstable created to see difference.

提交回复
热议问题