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

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?

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.

4 Likes

Thank you :slight_smile: