sarmbruster / neo4j-uuid

Neo4j-uuid is a unmanaged extension to Neo4j. It features automatic UUIDs on nodes and relationships.
GNU General Public License v3.0
25 stars 11 forks source link

neo4j-uuid

warning: this project is pretty much outdated, I suggest to use the well maintained https://github.com/graphaware/neo4j-uuid instead.

purpose

A lot of Neo4j based projects I've seen need a unique identifier for nodes/relationship to reference contents in the graph database from some third party system. The most obvious thing namely using node.getId() is a bad choice since after deletion of a node its id might be recycled. For details on why and how this works, see an excellect blog post. A best practice for having unique identifiers is to assign each node/relationship a uuid property and let Neo4j perform autoindexing on the uuid property. Third party systems store only the UUID. A simple index lookup retrieves then the referenced node or relationship in the graph database.

license

GPL v3

build & install

neo4j-uuid uses Gradle as build system. To install uuid-neo4j in a Neo4j server instance:

implementation details