Re: setting ttl using timestamp field of record during insertion in cassandra

2016-08-08 Thread Sujeet Kumar
Thanks.Actually i want to start ttl from the record timestamp field, not from insertion time(ttl starts from insertion time). On Mon, Aug 8, 2016 at 9:36 PM, wrote: > Perhaps you can set the default TTL when you create the table instead of > on every insert: > > http://docs.datastax.com/en/cql/3

RE: setting ttl using timestamp field of record during insertion in cassandra

2016-08-08 Thread SEAN_R_DURITY
Perhaps you can set the default TTL when you create the table instead of on every insert: http://docs.datastax.com/en/cql/3.1/cql/cql_reference/tabProp.html (see default_time_to_live property) Then no need for UDF. Sean Durity lord of the (C*) rings (Lead Cassandra Admin) Big DATA Team MTC 2250