Category Archives: Neo4j

Relational “H2″ vs. Graph “Neo4j”

We will test the performance of Neo4j graph database against a relational database. I have selected H2 to represent the relational database community because it is light and assumed to be very fast. So, simply we will build a data model that represents relations among a set of people in both databases. Then we will test their performance by trying to ask “query” some questions.

The Story:

We have a set of 1000 persons each of them knows exactly 50 persons from the same set. We will build this data model in both databases using the below Java application. The relation between each person to his 50 friends will be randomly generated but it will be same on both databases.

Objective:

  • Test the performance of Neo4j against relational database “H2″.

Continue reading

First Time Neo4j

If it is your first time with Neo4j, “I know how does it feel!”. We will run it as an embedded db!

Objective:

  • Run Neo4j for the first time ever as embedded db.
  • Create some nodes with relation.
  • Run embedded server to query and visualize built graph.

Continue reading