all-things-risingwave

How is RisingWave Data Retention Policies designed?

For example, if data is stored for a fixed period of 1 or a few days, how does the obsolescence mechanism work?

ji

jie

Asked on May 17, 2022

  • RisingWave Data Retention Policies are designed to include mechanisms for obsolescence of stored data.
  • The obsolescence mechanism works by setting a fixed period for data storage, typically for 1 or a few days.
  • After the specified period, the data is automatically removed from storage to ensure compliance with the retention policies.

Example:

# Setting data retention period to 1 day
retention_period = 1

# Obsolescence mechanism implementation
if data_storage_time >= retention_period:
    remove_data_from_storage()
May 17, 2022Edited by