Indexing not working on level 2 onwards
Running Query
gremlin> g.V().has('typeInt',1).out('contains').has('typeInt',2).count().profile()
Result:
------
==>Traversal Metrics
Step Count Traversers Time (ms) % Dur
=============================================================================================================
JanusGraphStep([],[typeInt.eq(1)]) 10000 10000 1717.923 3.08
\_condition=(typeInt = 1)
\_isFitted=true
\_query=[(typeInt = 1)]:alphanumeric
\_index=alphanumeric
\_orders=[]
\_isOrdered=true
\_index_impl=search
optimization 115.463
backend-query 0.000
\_query=alphanumeric:[(typeInt = 1)]:alphanumeric
backend-query 0.000
\_query=alphanumeric:[(typeInt = 1)]:alphanumeric
backend-query 0.000
\_query=alphanumeric:[(typeInt = 1)]:alphanumeric
backend-query 10000 10477.430
\_query=alphanumeric:[(typeInt = 1)]:alphanumeric
JanusGraphVertexStep(OUT,[contains],vertex) 100000 100000 5243.414 9.39
\_condition=type[contains]
\_isFitted=true
\_vertices=1
\_query=org.janusgraph.diskstorage.keycolumnvalue.SliceQuery@81b76299
\_orders=[]
\_isOrdered=true
optimization 10.660
backend-query 10 2.980
\_query=org.janusgraph.diskstorage.keycolumnvalue.SliceQuery@81b76299 . //Please Explain this too.
optimization 0.168
backend-query 10 1.235
\_query=org.janusgraph.diskstorage.keycolumnvalue.SliceQuery@81b76299
optimization 0.126
backend-query 10 1.638
\_query=org.janusgraph.diskstorage.keycolumnvalue.SliceQuery@81b76299
optimization 0.126
backend-query 10 1.167
\_query=org.janusgraph.diskstorage.keycolumnvalue.SliceQuery@81b76299
optimization 0.119
backend-query 10 1.836
\_query=org.janusgraph.diskstorage.keycolumnvalue.SliceQuery@81b76299
optimization 0.149
backend-query 10 1.046
\_query=org.janusgraph.diskstorage.keycolumnvalue.SliceQuery@81b76299
optimization 0.129
backend-query 10 1.090
\_query=org.janusgraph.diskstorage.keycolumnvalue.SliceQuery@81b76299
optimization 0.104