Using Dgraph in Rails

Sung
sung.io

Using SQL in Ruby apps
is slowing you down

Plan

  1. Graph database
  2. Rails Demo

Graph database

  • Nodes and edges
  • Edge traverals
  • Key-value lookups

Facebook Open Graph

open-graph

Google Knowlege Graph

knowldge-graph

Why?

  • Retrieve complex data fast
  • Store data in a natural way

Dgraph

Use in Rails

GraphOverflow

  • 10,000 users
  • 20,000 questions
  • 30,000 answers
  • 550,000 edges

[Demo]

Source code

Benefits

  • Let DB do the heavy lifting
  • Retrieve data fast with single query
  • Highly scalable
  • Not proprietary

Super easy to use Graph DB
in your Ruby apps

And it's simpler and faster

End