Row Expiration

Ordinarily, rows in a table are not deleted until a client explicitly deletes them. In some situations however, the data in the rows might only remain valid or relevant for a short span of time. Leaving these rows in the table indefinitely consumes disk space and in some situations can slow down your queries. The row expiration feature is designed to remove outdated rows.

An application developer can override the default TTL by setting TTL on a specific row before it is inserted in a table. Developers can use the C or Java API to override the TTL set for a table. For more information, see Overriding the Default TTL for a Single Row.

When a row is expired, it becomes available for deletion from the table. Note that becoming available for deletion does not mean it gets deleted immediately. Deletion takes place only after the table is scanned for expired rows. For more details, see Deletion of Expired Rows.

Related concepts
Related tasks
Related reference