Instance -----> targets -----> Segment (can be more than 1)
instance -----> emdeds -----> Fragment (can be more than 1)
Fragment -----> child -------> FragmentInstance
Fragment -----> targets -----> Segment (Can be more than 1)
The query will start from Page (V1) and need to return the full tree such as
v1,v2,v3,v4,v5,v6,v7 // their ids will suffice.
Query : g.V().has('docId','page1').emit().repeat(out()).tree()
This prints all vertices but it prints duplicates as well in case the segment is shared between instance and fragment Instance.
Another thing is this query is very slow for higher number of vertices. Took somewhere 14 seconds.
I have one index for lookup by docId.
Is there some other alternative to this query which can just print the vertices and also reduce latency. Looking under 10ms
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/e505ce19-cc22-413e-b44e-a71ea671ee7an%40googlegroups.com.