I'm currently building an application in Java that uses a Cassandra database, and I would like to have a table that takes in data as it expires in another Cassandra table. Is there a way to implement a Trigger that can do this?
Asked
Active
Viewed 749 times
1 Answers
5
The data doesnt actually expire on a timer or anything. The data is written to disk with the ttl. When read if the ttl + writetime < now
it will consider it a tombstone instead of the data. Then after gc_grace_seconds
it will end up being purged on a compaction. So while the data is expired, it maybe days depending on compaction strategy before its actually deleted from disk.
To answer question though, no you cannot.

Chris Lohfink
- 16,150
- 1
- 29
- 38
-
Should not the line read as "When read if the ttl + writetime __**<**__ now; it will consider it a tombstone instead of the data. " – Raktotpal Bordoloi Jan 10 '19 at 04:20