1、The amount of data
1 billion vertices, 20 billion edges, there can be 20 out-edge for a given vertex.
2、What is the difference between these two gremlin traversal statements?
(1)g.V(99080632428550).out().out().out().out().out().out().out().out().out().limit(10) //Return results within 10 seconds
(2)g.V(99080632428550).repeat(out()).times(9).limit(10) //Return results within 10 seconds
(3)g.V(99080632428550).repeat(out()).until(loops().is(eq(9))).limit(10) //scriptEvaluationTimeout threshold of 180 seconds
3、operation result
gremlin> g.V(99080632428550).out().out().out().out().out().out().out().out().out().limit(10)
==>v[8830644770920764558]
==>v[5479581532318355670]
==>v[4016380489293982174]
==>v[2248543243211431414]
==>v[3949609383134423542]
==>v[674617584523921070]
==>v[3976404157965374286]
==>v[1457737582673669038]
==>v[6231037793945643166]
==>v[7276954905296467190]
gremlin> g.V(99080632428550).repeat(out()).times(9).limit(10)
==>v[8830644770920764558]
==>v[5479581532318355670]
==>v[4016380489293982174]
==>v[2248543243211431414]
==>v[3949609383134423542]
==>v[674617584523921070]
==>v[3976404157965374286]
==>v[1457737582673669038]
==>v[6231037793945643166]
==>v[7276954905296467190]
gremlin> g.V(99080632428550).repeat(out()).until(loops().is(eq(9))).limit(10)
Script evaluation exceeded the configured 'scriptEvaluationTimeout' threshold of 180000 ms or evaluation was otherwise cancelled directly for request [ g.V(99080632428550).repeat(out()).until(loops().is(eq(9))).limit(10)]
Type ':help' or ':h' for help.
Display stack trace? [yN]
4、why "g.V(99080632428550).repeat(out()).until(loops().is(eq(9))).limit(10)" is slow?