O'Reilly logo

Neo4j Cookbook by Ankur Goel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Aggregate versus connected data models

Data can be modeled in Neo4j using both connected and aggregated forms. The connected form has the advantage that new dimensions can be easily extracted from the same model. In comparison, the aggregate form (also can be called as MapReduce) can give us quick access to the aggregated result, which is very useful in particular. In this recipe, you will learn both data models and a third one also, which has been derived by combining both of these data models.

Getting ready

Install the Neo4j graph database on the host machine using the recipe described in Chapter 1, Getting Started with Neo4j. This installation process will depend on your preference for your machine OS type.

How to do it...

Perform the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required