Hi! Just chiming in on entry points / reference node.
2010-09-03 14:28, Alexandru Popescu ☀ skrev: > This is a very important aspect as I can imagine many systems that can > use a small subset of the existing nodes as entry points. Basically by > using the cached IDs you'll be able to get to these without the need > of using indexing/traversals. This is typically where you should use the reference node: create a relationship with a specific relationship type (like "customers_entry_point") from the reference node to the entry point node (also known as a subreference node). Then there's no need to store the IDs somewhere else. BTW us the Node.getSingleRelationship(RelationshipType, Direction) for this purpose! See: http://api.neo4j.org/current/org/neo4j/graphdb/Node.html#getSingleRelationship(org.neo4j.graphdb.RelationshipType, org.neo4j.graphdb.Direction) There's also a utility method for using subreference nodes in the utils component: http://components.neo4j.org/neo4j-utils/apidocs/org/neo4j/util/GraphDatabaseUtil.html#getOrCreateSubReferenceNode(org.neo4j.graphdb.RelationshipType) /anders _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

