cassandra - Deleting a row after certain time -
deleting row after time:
i inserting notification in table. if unread there , if read should deleted after 1week. how achieve that?
i using ttl seems expire column not row.
i want delete row.
create second cf (called eg. recorded, same key semantics notifications table) insert (w/ ttl) seen messages into. @ same time delete same message notifications table.
to load inbox need read both cf. seen messages automatically removed after 1 week , unseen messages stick around ever.
Comments
Post a Comment