As per Question regarding Tombstone, why doesn't upserts create tombstones? As per datastax documentation, How is data updated ? for every upsert, cassandra considers as delete followed by insert, as the new timestamps of the insert overwrites the old timestamp. The old timestamp data has to be marked as delete which relates to tombstone.
Why do we have contradicting statements? or else am I missing anything here?
Usecase: Data is inserted with unique key (uuid) in Cassandra and some of the columns in this data keeps updating frequently. Which approach do you recommend?
- Inserting the same data with new column values in the Insert query.
- Updating the existing record based on given uuid with new column values in the update query.
Which approach does or doesn't create tombstones? and how does Cassandra handle both queries?