I've a cassandra table definition as following
CREATE TABLE mytable
(
colA text,
colB text,
timeCol timestamp,
colC text,
PRIMARY KEY ((colA, colB, timeCol), colC)
) WITH....
I want to know if number of tombstones would vary between following types of queries:
1. delete from mytable where colA = '...' AND colB = '...' and timeCol = 111
Above query affect multiple records, (multiple values of colC)
2. delete from mytable where colA = '...' AND colB = '...' and timeCol = 111 AND colC = '...'
However, 2nd query needs to be executed for each value of last column colC
, while 1st query takes care of deletion in one execution
Will Cassandra create same number of tombstones in both the cases?
nodetool flush
): datastax.com/documentation/cassandra/2.0/cassandra/tools/… – Stefan Podkowinski