There seems to be plenty of documentation around creating a Vertex index in Titan:
mgmt.buildIndex('byNameAndLabel', Vertex.class).addKey(name)
I can't find much documentation about adding Edge indexes, e.g.:
mgmt.buildIndex('byNameAndLabel', Edge.class).addKey(name)
My questions:
- When is it appropriate to add an Edge index to a graph?
- Will an Edge index be used if it's available in any/all parts of a traversal or only the first time it's encountered?
The second question I guess is related to how the underlying store (in my case Cassandra) will use indexes. So the question is really "does the graph go back to the underlying store for each part of the traversal and how does that impact its use of indexes?"