$30 off During Our Annual Pro Sale. View Details »

Graph Databases Will Change Your Freakin Life

Graph Databases Will Change Your Freakin Life

Given at Open Source Bridge 2016

funkatron

June 23, 2016
Tweet

More Decks by funkatron

Other Decks in Technology

Transcript

  1. GRAPH DATABASES WILL CHANGE YOUR FREAKIN’ LIFE ED FINKLER LEAD

    DEVELOPER & HEAD OF DEVELOPER CULTURE
  2. WHAT IS?

  3. I’VE GOT A DOPE VISUALIZATION FOR YOU DOGG This Effin

    Guy HEY I JUST DOWNLOADED D3.JS
  4. NO. INCORRECT.

  5. GRAPH THEORY AND MATH AND STUFF

  6. I WAS TOLD THERE WOULD BE NO MATH

  7. IT’S ABOUT DATA

  8. MANY DATA Visualiza!on by Kim Albrecht
 h"p:/ /www.kimalbrecht.com/project/cosmic-web/

  9. BUT IGNORE THAT

  10. ZOOOOOO000M IN

  11. HOW DO WE REPRESENT A THING OR AN ENTITY OR

    WHATEVER YOU WANT TO CALL IT
  12. RELATIONAL DATABASES USE A LEDGER-STYLE STRUCTURE

  13. USUALLY A THING IS ONE ROW IN A TABLE

  14. YOU USE CONSTRAINTS TO REPRESENT RELATIONSHIPS BETWEEN THINGS

  15. THE TABLE STRUCTURE IS GREAT FOR CONSTRAINING INPUT AND LOCKING

    THINGS DOWN
  16. CAN GET COMPLEX AND RIGID WHEN REPRESENTING RELATIONSHIPS

  17. LET’S TALK ABOUT [NEO4J] GRAPHS

  18. GRAPHS ARE MUCH SIMPLER

  19. THINGS ARE NODES OR VERTICES

  20. NODES HAVE PROPERTIES { KEYS: “VALUES” }

  21. NODES HAVE LABELS TO TELL YOU WHAT TYPE OF THING

    IT IS
  22. n:Person id: 1234 first_name: “Ed” last_name: “Finkler”

  23. NODES ARE CONNECTED BY RELATIONSHIPS OR EDGES

  24. RELATIONSHIPS HAVE A TYPE AND A DIRECTION AND CAN HAVE

    PROPERTIES
  25. n:Person id: 4321 first_name: “Griffin” last_name: “Finkler” n:Person id: 1234

    first_name: “Ed” last_name: “Finkler” r:CHILD_OF created: 2002
  26. DOTS AND LINES ALL THE WAY DOWN

  27. IT’S SIMPLER

  28. IT’S MORE POWERFUL

  29. WHEN THE MEANING IS IN THE RELATIONSHIPS

  30. SOMETIMES DIRECT RELATIONSHIPS BUT THAT’S NOT HARD TO DO WITH

    RELATIONAL DBS PERSON A PERSON B
  31. SOMETIMES INDIRECT RELATIONSHIPS THIS IS HARDER TO DO TRAVERSE WITH

    RELATIONAL DATABASES ACTOR A ACTOR B MOVIE A DIRECTOR A MOVIE B ACTOR C
  32. SCALING UP INDIRECT RELATIONSHIPS

  33. ANSWERING QUESTIONS YOU DIDN’T EXPECT

  34. YOU WANT TO KNOW HOW MANY PEOPLE WHO BOUGHT A

    TOASTER IN KANSAS AND HAVE A CRIMINAL RECORD USED YESTERDAY’S COUPON? NO. GET THE HELL OUT. This Effin Guy ASKING YOUR BACKEND DEV IF YOU CAN GET SOME NEW DATA OUT OF THE DB
  35. WITH A GRAPH, YOU COULD ANSWER THAT QUESTION. IF YOU

    HAVE ALL THAT DATA IN THERE, AND THERE ARE PATHS BETWEEN THEM.
  36. YOU CAN ADD MORE RELATIONSHIPS AS NEEDED AND STILL BE

    PERFORMANT
  37. EGOTISTICAL LIVE CODING TIME

  38. I’M PROBABLY GONNA FUNK THIS UP

  39. CMD+TAB, SON

  40. THANK GOD THAT’S OVER

  41. GRAPHS AREN’T MAGIC

  42. GRAPHS DON’T SOLVE ALL YOUR PROBLEMS

  43. IF YOU’RE ASKING QUESTIONS ABOUT THE RELATIONSHIPS, THEY ARE REALLY

    NICE AND REALLY POWERFUL AND SOMETIMES SEEM LIKE WITCHCRAFT
  44. ESPECIALLY IF YOU HAVE MANY DATAS

  45. WHAT GREAT DELIGHTS AWAIT YOU DATAS FOR FUN AND EXPLORATION

    ▸ graphstory.com -> Free Trial (no CC!) -> Sample Data ▸ h!p:/ /neo4j.com/developer/example-data/ ▸ h!ps:/ /github.com/OSMIHelp/osmi-survey-graph
  46. @GRAPHSTORYCO • GRAPHSTORY.COM @FUNKATRON QUESTION TIME IS NOW. BE NICE.