[Neo] is neo4j the correct tool to store trees?

Anders Nawroth anders at neotechnology.com
Tue Apr 6 20:51:37 CEST 2010


Hi!

> path (eg /dir/dir2/dir3/...../dirN)
> To do that, starting from the root node, I would have to query the 
> root's CHILD(ren), search for the node which has the property name 
> "dir1", then iterate the process until the lowest node "dirN". I feel I 
> need some kind of index to index the CHILD(ren) at each depth.

There's some benefits to store the names on the relationships instead:
* no need to fetch all the nodes, just iterate over the relationships
* could be nice if you want to model things like symlinks

I'm writing up some Java code to demonstrate this ...

/anders



More information about the User mailing list