Is the concept of a node link in neo4j still used or deprecated?

I went through neo4j docs in tutorials-java-embedded-index . It describes the concept of a node link. A user link node usersReferenceNode , which is used to connect to all user nodes created in the database.

What was / is this link node used? When I tried to use graphDb.getReferenceNode() , it appears as an obsolete method.

So is / will it be necessary to create a node link at all? If so, how and how to use such a node link?

Thanks.

+4
source share
2 answers

The node link concept has been deprecated due to system design. Indexing should be used to retrieve certain types of nodes, etc. So you can have an index called Animal and an index called Bird , and they can store the nodes of these "types."

One of the reasons for deleting a node link is the dense node problem, which causes problems if you cannot store everything in RAM on Neo4j . Here you have one node with many, many relationships. After a certain point (depending on the system, but usually in the hundreds of thousands), the search for nodes is based on the types of relationships.

+8
source

One example of the use of node I see is the removal of certain nodes. For example, consider the following scenario:

 > I have two types of nodes, say ANIMAL and BIRD > I have a reference node `animalsReference` linked to all ANIMAL nodes and > I have a reference node `birdsReference` linked to all BIRD nodes 

Now, in the future, suppose that I want to delete all BIRD nodes. Here I can use "birdReference" to get all nodes of type BIRD and delete them all.

If graphDb.getReferenceNode() out of date, how can we complete this type of task (deleting some nodes)?

I also see that graphDb.getAllNodes() deprecated. So what is the way to retrieve all nodes in graphDB ?

+2
source

All Articles