Neo4j for Ruby on Rails

November 5, 2010 · Conferencia Rails 2010 · Madrid

“Neo4j is a graph database. It is an embedded, disk-based, fully transactional Java persistence engine that stores data structured in graphs rather than in tables. A graph (mathematical lingo for a network) is a flexible data structure that allows a more agile and rapid style of development.”

Neo4j allows you to map objects to nodes and relations, that is a more natural fit than mapping them to relational tables. Modeling with elements of a graph is substantially faster for semi­structured data (Recall that semi­structured data is data that has few mandatory but many optional attributes).

Neo4j is a powerful graph database/engine that every rails developer should know.

It turns out that I got involved with neo4j evluating a graph-databse for several graph-intensive operations we had to perform over an 8million vertices/100million edges graph. I decided to give a talk in the Spanish Rails Confenrence 2010 about Neo4j and graph-databases.

The title of my talk was Neo4j for Ruby on Rails

I did cover:

Here are some photos (thanks @valakirka):

Pablo Delgado Neo4j: Beginning

Pablo Delgado Neo4j: Edges

Pablo Delgado Neo4j

Tags: ruby, neo4j