Modelling and Design - Time to Live (TTL) #127
dario-vega
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Time to Live (TTL) is a mechanism that allows you to expire table rows automatically. Data that has reached its expiration timeout value can no longer be retrieved. Whether the data is physically removed from the store is determined by an internal mechanism. No more purge batches are needed. TTL is more efficient than manual user deletion of the row because it avoids the overhead of writing a database log entry for the data deletion. The deletion also does not appear in the replication stream.
The TTL value for a table row can be updated at any time before the expiration value has been reached. Can be updated using all the APIs.
Note: In the case of Multi-Region Tables with TTL value defined, the rows replicated to other regions carry the expiration time when the row was written. Therefore, this row will expire in all the regions simultaneously, irrespective of when they were replicated.
In Table Hierarchies, each table can have its own TTL.
learn more about NoSQL Modelling and Design
Beta Was this translation helpful? Give feedback.
All reactions