Thank you very much for your answers
,
When I change the query statement to look like yours , it can go index query normally!
g.V().hasLabel('InstanceMetric').has('type', neq('network)).has('vlabel', 'InstanceMetric')
.inE('Cause').has('status', -1).has('isManual', false)
.has('promote', within(-1,0,2,3)).has('vlabel', 'Cause')
.where(outV().
.hasLabel('InstanceMetric').has('type', neq('network)).has('vlabel', 'InstanceMetric')
).range(0,10)
But I found another problem, when the data ragne is 0~10,
it takes less than 400ms to execute, when the data range is 30000~300010, it takes more than 12s+ to execute,
Does it start reading from 0 to 300000 and then read the data from 300000 to 300010?
The vertex number of 'InstanceMetric' just is 344.
The edge number of 'Cause' is 300000+ and there are 300,000 edges established between two vertices