arangodb crashes 2 hop graph query.
image 3 vertex collections va, vb , vc. va connected vb , vc. have instance of vb , want vc connected via edges , va instances.
all of them definded in graph access them arango graph api. used following aql statement query graph. first vas connected vb instance , vcs connected vas.
for va in graph_neighbors("graph", "vb/instance", {direction: "inbound", edgecollectionrestriction: "eab"}) vc in graph_neighbors("graph", va._id, {direction: "outbound", edgecollectionrestriction: "eba"}) return vc
the result after few minutes of computation arangodb crashes without useful information in log files.
it seems inefficient model edges documents , not links between documents, because in such query whole edge collection has run through multiple times find correct links. assume 2 hops database handle. or there potential improve query , not crash database?
in 2.6 release few days ago (june 2015) changes have been made make graph_neighbors
, neighbors
faster.
as seen in comments seems fix problem.
Comments
Post a Comment