cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Burton <>
Subject Different TTLs for different columns requires two INSERTs?
Date Sat, 12 Jul 2014 23:23:28 GMT
I have a column that I would like to have a different TTL than the whole

because of the cassandra USING TTL clause I don't think this is possible to
do with one INSERT.

It seems like I need to have TWO inserts doing this… One for all the
columns with the first TTL, and then another insert with the columns having
the second TTL.

And of course, you would want this to be atomic, so that means a batch,
with slows things down.

Am I correct ?  This is what the documentation would have me believe.

This seems to be a design flaw.  It seems to me that you should be able to
specify the TTLs on the columns…

something like

update foo set bar='bar' with TTL=60, cat='cat' with TTL=120;



Location: *San Francisco, CA*
… or check out my Google+ profile

View raw message