How Nebula Graph Automatically Cleans Stale Data with TTL

In the era of big data, we are processing data in TB, PB, or even EB. How to deal with huge data sets is a common problem for those working in the database field.


This is a companion discussion topic for the original entry at https://nebula-graph.io/en/posts/clean-stale-data-with-ttl-in-nebula-graph/

is there any api to set ttl in storage service?

No api to set ttl in storage service
The information of ttl is stored in the meta service schema.
It’s just that when reading data from the storage service, first go to the meta to get the schema information, and then determine whether the data is out of date.

1 Like

thanks :grinning:

Stale data would be dropped when doing rocksdb compaction.