repeat with times(1) causing timeout
I'm trying to run a subtraversal of my query inside a repeat step. For some reason, it keeps timing out even with the breaking condition of
times(1)
.
Query 1 (runtime: 85 ms)
Query 2 (timeout)
Profiling these queries shows a huge difference in index operations.
Note: To avoid timeout while profiling I added limit(100)
after hasLabel("VertexB")
in both queries.
Query 1
Query 2
What could be the reason?6 Replies
(adding to this - I work with @moosa - we're seeing this behaviour with Neptune)
Which Neptune engine version are you currently using?
We're on engine version 1.1.1.0
@neptune any thoughts on this one?
It would help (if you are able to share) to have the full profile for each query. It would also be interesting to know if things improve on the latest engine. Gremlin query performance improvements go in to just about every Neptune release as more patterns are found that will benefit from additional optimization. Feel free to contact me privately if you are unable to share a profile here.
A
repeat
query, even a times(1)
will likely always be a little slower than just out().out()
as under the covers repeat
has to initialize some extra data structures etc. but timing out does sound odd. We need to look into what is going on and the profile will really help.Just to close the loop on this one, seems that an issue has been opened in Neptune for this concern to be resolved in a future version.