Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

should everything connect with node 0 in neo4j

Tags:

neo4j

In neo4j should all nodes connect to node 0 so that you can create a traversal that spans across all objects? Is that a performance problem when you get to large datasets? If so, how many nodes is too much? Is it ok not to have nodes connect to node 0 if I don't see a use case for it now, assuming I use indexes for finding specific nodes?

like image 464
MonkeyBonkey Avatar asked Aug 29 '12 21:08

MonkeyBonkey


People also ask

How to connect with Neo4j?

Intro: Neo4j is graphical data base in which data is represent in form of nodes and we make the relationship between these node and put the data in these relationship node-neo4j: node-neo4j is npm in node to connect with neo4j database. These are various steps to connect with neo4js var neo4j = require('node-neo4j');

What do I need to know to use Neo4j auradb?

You should be familiar with graph database concepts and the property graph model. You should have created an Neo4j AuraDB cloud instance, or installed Neo4j locally Neo4j provides drivers which allow you to make a connection to the database and develop applications which create, read, update, and delete information from the graph.

What happened to the bolt protocol In Neo4j?

With Neo4j version 3.0, the company announced a set of official drivers and the binary Bolt protocol. Any old libraries still utilised Neo4j’s REST API and therefore didn’t take advantage of the improved speed and security. As far as I could see, it would have taken a lot of work to update these existing libraries to utilise Bolt.

What is the default encryption setting for Neo4j?

From Neo4j version 4.0 and onwards, the default encryption setting is off by default and Neo4j will no longer generate self-signed certificates. This applies to default installations, installations through Neo4j Desktop and Docker images.


1 Answers

There is no need or requirement to connect everything to the root node. Indexes work great in finding starting points for your traversal. If you have say less then 5000 nodes connected to a starting node (like the root node), then a relationship scan is cheaper than an index lookup.

To judge what is better, you need to know a bit more about the domain.

like image 173
Peter Neubauer Avatar answered Nov 03 '22 13:11

Peter Neubauer