Using Titan w / Cassandra v 0.3.1, I created the vertex key index through createKeyIndex , as described in the Titan docs .
gremlin> g.createKeyIndex("my_key", Vertex.class) ==>null
Now I have appx 50k nodes and 186k ββedges in the graph, and I find a significant performance difference between search queries with my_key . This request takes about 5 seconds:
gremlin> gVhas("my_key", "abc") ==>v[12345]
whereas the index identifier takes less than 1 second:
gremlin> gv(12345) ==>v[12345]
my_key does not have a single limitation (I do not want to), but I wonder what causes this performance mismatch. How to improve search performance for a non-ideal, indexed vertex key?
source share