TTL in nonstatic vertex labels Janusgraph

I wanted to set a TTL in some vertices but I don't want those vertices to be static. How can I implement TTL in Janusgraph since I cannot use the pre existing implementation of TTL because it requires the vertices to be static?
2 Replies
spmallette
spmallette2y ago
Does anyone from @janusgraph have any thoughts on this one? If you don't get answer here you might want to try your question in the JanusGraph Discord server. There's a related question here: https://discord.com/channels/838910279550238720/1100355662896173146/1100355662896173146 as well
Florian Hockmann
You'll have to implement some mechanism on your own if you don't want to go with static vertex labels. We also recently had to do this at my company and decided to add a mixed index with their modification date on all vertices/edges for which we want the TTL to be applied in Elasticsearch. Then we regularly execute cleanup jobs that fetch a batch of vertices/edges that passed the TTL and delete them
Want results from more Discord servers?
Add your server