Re: [Neo4j] Fastest way to count relationships from a particular node.

2011-08-23 Thread Jim Webber
Hey, What you suggest (a cache node) is an OK way of doing things. You could also inline the cached values in the node itself. Since managing relationships is atomic with respect to the cached counters, there will never be inconsistencies. Jim ___

[Neo4j] Fastest way to count relationships from a particular node.

2011-08-22 Thread noppanit
I've got a little question about what is the fastest way to count relationships of a node. For example, ICE-CREAM | | LIKES | A -- KNOWS -- B | | KNOWS | C If I count it by traversing it would be 2 KNOWSs and one LIKE. So, my question is if I want to count every relationship that comes out of a