News for hackers. Stuff that matters.

Ask HN: Best database for tree storage and traversal?

The gist of what I'm trying to do is have a tree, traverse through every possible branch until all leaf nodes have been visited.

I need to also be able to modify any node along a branch. I originally thought about using MySQL but it seems really complicated. So I turn to graph databases.

I want a python example which does this but can't find it in the docs for Neo4j, OrientDB, ArangoDB

( 2 comments | 6 points | on HN )
Re:Ask HN: Best database for tree storage and traversal? by truncate on Tuesday May 27, 2014 @05:10PM (#7806892)
Did you try using any MPTT libraries for your framework/rdbms? I've found that fairly simple to use. But of course performance should be better with NoSQL.
Re:Ask HN: Best database for tree storage and traversal? by scaramanga on Thursday June 05, 2014 @05:42AM (#7851059)
files and directories