Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-29-2020 11:24 PM
Hello,
With the new 4.0 update, Neo4j has added support for horizontal scaling (1). Can Neo4j still claim that it has the performance advantage of O(1) node hop given multiple nodes in the graph (2)?
Thanks,
Will
03-11-2020 03:02 PM
Hi Will,
Relationships can only exists between nodes of a single database; they cannot span between nodes in multiple databases. Selection and traversal is based upon the number of relationships on the node itself (limited also in type and/or direction as well), and not the total number of nodes or the total number of relationships in the graph, and at that point you're pointer hopping between nodes to attached relationships to the node at the other end etc.
So nothing has changed about the fundamentals here.
If you're querying across multiple graphs with Fabric, assuming that you have sharded the same kind of data across multiple databases, then you have delegated the work to those databases to execute in parallel, then retrieve results over the network (assuming that they're remote databases instead of local databases on the current dbms), and then any further work that needs to be done on the query. So there is parallel execution in play, and there is also potentially network I/O in play, but neither of these changes the efficiency of traversing through the graph based upon Neo4j's native graph implementation.
All the sessions of the conference are now available online