Re: Configuring TTL in edges and vertices of graph


Jason Plurad <plu...@...>
 

It doesn't look like you committed the management transaction with mgmt.commit()

http://docs.janusgraph.org/latest/advanced-schema.html#_vertex_ttl


On Wednesday, August 23, 2017 at 8:56:43 AM UTC-4, Abhay Tibrewal wrote:
I was able to set TTL for vertices and edges, but even after the time has passed, the vertex did not got removed from the Db. My storage backend is Cassandra. So do we have to configure anything for Cassandra to activate TTL through janusgraph.

I used the following code :-

graph = JanusGraphFactory.open('conf/janusgraph-cassandra-solr.properties)
mgmt = graph.openManagement()
tweet = mgmt.makeVertexLabel('tweet').setStatic().make()
mgmt.setTTL(tweet, Duration.ofMinutes(2))

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.