cancel
Showing results for 
Search instead for 
Did you mean: 

Is it reliable to depend on node ID to query data?

VINNUSAURUS
Node Clone

I want to query data using ID of a node, but I read in a post that in a future version of Neo4j those IDs may change, can I use those ID values to query or should I generate Unique ID, i am thinking about using GraphAware Neo4j UUID plugin?

2 REPLIES 2

dominicvivek06
Graph Fellow

Hi @VINNUSAURUS , we always use Graphaware UUID for our production system, so that UUID once delete are not reused(or orphaned UUID references).

Reference

Neo4j reuses its internal ids when nodes and relationships are deleted. This means that applications using, and relying on internal Neo4j ids, are brittle or at risk of making mistakes. It is therefore recommended to rather use application-generated ids.

Thank you