How can I speed up datastax dse gremlin query 'find shortest path' between nodes A and B

36 views
Skip to first unread message

אלה וייס

unread,
Sep 18, 2016, 4:30:26 AM9/18/16
to Aurelius
Hello,
I would like to speed up query by adding timeStamp property index on edge. but According to the link :


Vertex-centric indexes are spesific, But in my query I look for all edges between two groups of nodes and not specific.

so ,How can I speed the following query using timeStamp index on edge ?

ids1 = [{'~label=person',member_id=54666,community_id=505443455},{...},{...}]

ids2 = [{'~label=person',member_id=52366,community_id=501423455},{...},{...}]




g.V(ids1).repeat(timeLimit(20000).bothE().otherV().dedup().simplePath()).times(5).emit().where(hasId(within(ids2))).path().range(0,5)

or: 

g.V(ids1).repeat(timeLimit(20000).bothE().has('timestamp', gte(Instant.parse('2015-01-01T00:00:00.00Z'))).otherV().dedup().simplePath()).times(5).emit().where(hasId(within(ids2))).path().range(0,5)



Please help



Reply all
Reply to author
Forward
0 new messages