You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Jan Algermissen <ja...@nordsc.com> on 2013/08/06 10:38:23 UTC

Effect of TTL on collection updates

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

Posted by Alain RODRIGUEZ <ar...@gmail.com>.
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 <ja...@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