2011/3/15 Massimo Lusetti <mluse...@gmail.com>

> On Tue, Mar 15, 2011 at 9:11 AM, Mattias Persson
> <matt...@neotechnology.com> wrote:
>
> > more advanced. If you would like to force the traversal down a very
> defined
> > path then go with the core API, like:
> >
> >  for(Relationship relA : startNode.getRelationships(A)) {
> >      Node nodeA = relA.getOtherNode(startNode);
> >      for(Relationship relB : nodeA.getRelationships(B)) {
> >          Node nodeB = relB.getOtherNode(nodeA);
> >          // nodeB will be the node (3) from the above example
> >      }
> >  }
>
> One question before I dive into this... Do the Traversal framework
> involve performance improvements over the core API as shown in your
> example?
>

It doesn't currently, since it's using the core API. But I think the goal is
to have it "drop down" one level in order to gain performance.

>
> Thanks for any clue...
> --
> Massimo
> http://meridio.blogspot.com
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to