yadav.sunny05
yadav.sunny05
ATApache TinkerPop
Created by yadav.sunny05 on 4/25/2023 in #questions
Edge TTL not working for Janusgraph with Bigtable
I'm creating edges with TTL of 30 seconds but I can see those edges aren't getting deleted. I'm using Janusgraph 0.6.1 and I'm able to see a TTL of 30 seconds when I do gmt.getTTL(mgmt.getEdgeLabel("ttlTest3")).getSeconds(). What can be the cause of this?
5 replies
ATApache TinkerPop
Created by yadav.sunny05 on 4/24/2023 in #questions
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?
6 replies
ATApache TinkerPop
Created by yadav.sunny05 on 4/13/2023 in #questions
Question about conversion of datetime to epoch
Hii, I wanted to know if there's a way to convert datetime stored in a node to epoch, without using lambdas because I don't want to compromise on performance. The reason why I'm doing this is to figure out the time difference between two timestamp values in nodes, something like this : - g.V().has("Customer",'customerId', 'abc').out() .has("Attempt", "eventTimestamp", between(datetime(LocalDateTime.parse('2023-03-01T00:00:00').minusDays(15).toString()), datetime(LocalDateTime.parse('2023-03-01T00:00:00').minusDays(1).toString()))) .as('a').values('nodeCreatedAt').in().hasLabel('Device').values('nodeCreatedAt').as('b') .math('a - b').by('nodeCreatedAt')
5 replies