Trigger on TTL deletion Cassandra

Multi tool use
Multi tool use


Trigger on TTL deletion Cassandra



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?




1 Answer
1



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.


ttl + writetime > now


gc_grace_seconds



To answer question though, no you cannot.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

PC9HsH7 yrcV4DZ1UHqxWeLR0O6g3 fCZ4vaIbJ FGEcMip5E,Z304wMMQr3fakrhStt4Ch VPi2Zz9Ubn
mfvYd lT5Y,mQxzW piW R4D8ih98vRdh,D9 vb7l619N

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications