Shweta Valunj
Shweta Valunj

Reputation: 158

Cassandra update column should update column value but not the ttl?

I want to know if there is a way to update the column value in cassandra but the column ttl that is present already should remain the same.

Could you please let me know if this is possible?

Upvotes: 0

Views: 393

Answers (1)

Manish Khandelwal
Manish Khandelwal

Reputation: 2310

You can update the ttl to desired value while updating the column. I mean you can achieve it programatically. Please go through this page ( https://docs.datastax.com/en/cql-oss/3.3/cql/cql_using/useExpireExample.html ) for examples.

Upvotes: 1

Related Questions