1
votes

Suppose I have a variable v which represents a vertex generating pipe and the vertices selected by v have edges named related that have a numeric property called time. Also suppose I have defined a vertex centric index on time a la https://github.com/thinkaurelius/titan/wiki/Vertex-Centric-Indices

v.outE('related').order { it.a.time <=> it.b.time }

Does the vertex centric index impact the performance of order in this case?

1
While stephen's answer works well, the simple and direct answer is YES, it does have a positive impact on the performance of order.jkschneider

1 Answers

3
votes

The order step is an in-memory function that is not "pushed-down" to Titan as part of a Vertex Query. That said, I suppose that use of order may end up being redundant to the query if the order defined by the vertex centric index matches the order defined by the query.