I installed a simple test case to finally find out some graph databases
I have a simple tree structure based on a set of approximately 80,000 vertices / documents with approximately 25 attributes. The only edges are the outgoing "is_parent" edges, so to find the children of each node, I can just pick up all the incoming edges. I did not specify any specific indexes in any fields. The 20-level tree is deep, and I grab a random node on the fifth level, to then take all the descendants of this node using a graph traversal:
FOR t IN GRAPH_TRAVERSAL("sample_tree", "sampleunit/2565130142666", "inbound", {"maxDepth":20}) RETURN t'
It takes a little over 3 seconds on my dev machine and I feel like I can do something wrong. Is there a way to speed up the process or am I having any conceptual issues?
Jules source
share