Effect of TTL on collection updates

2013-08-06 Thread Jan Algermissen
Hi,

after seeing Patrick's truly excellent 3-part series on modeling, this question 
pops up:

When I do an update on a collection, using a TTL in the update statement (like 
Patrick does in the example with the login-location time series example), does 
the TTL apply to the update only, or to the row as a whole?

Jan

Re: Effect of TTL on collection updates

2013-08-06 Thread Alain RODRIGUEZ
Hi Jan

TTLs if used only apply to the newly inserted/updated values, from :
http://cassandra.apache.org/doc/cql3/CQL.html#collections

This manual is updated often enough to be up to date, and so, useful, you
should keep it bookmarked.

Alain




2013/8/6 Jan Algermissen jan.algermis...@nordsc.com

 Hi,

 after seeing Patrick's truly excellent 3-part series on modeling, this
 question pops up:

 When I do an update on a collection, using a TTL in the update statement
 (like Patrick does in the example with the login-location time series
 example), does the TTL apply to the update only, or to the row as a whole?

 Jan