Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Our Daily Graphs written in Ruby and Neo4j

hannelita
October 24, 2014

Our Daily Graphs written in Ruby and Neo4j

Talk given at RubyConf AR 2014 - Buenos AIres

hannelita

October 24, 2014
Tweet

More Decks by hannelita

Other Decks in Technology

Transcript

  1. Hola! / Oi! / Hi! • Hanneli - from Brazil

    • CodeMiner 42 • Coffee (coffee, coffee, coffee, coffee, coffee, coffee), Pokémon, Lego and animals <3 HIRING
  2. We *WON’T* see here • Advanced graph theory • Neo4j

    complete guide • Java stuff (Neo4j is written in Java) • Social Networks classics example (eeeww)
  3. Persistence What’s the first storing system we study! into databases

    class? a. Queue b. Stack c. Hash d. Tree e. None
  4. Wanna represent hydropower map into relational model HYDROPOWER_PLANT locale:float capacity:float

    name:float providing_city_id:CITY neighbor_id:HYDROPOWER_PLANT population:int
  5. FUUUUUUU…. • According to population, how should I create hydropower

    plants neighbors? • If one plant shuts off, which one should replace it without causing damage to the entire system? • How should I avoid underuse? • Monitoring?
  6. Our plants into graphs Itaipu! is_neighbor Itá latitude:33.43 longitude:32:33 capacity:1400

    latitude:43.43 longitude:56:33 capacity:700 line_voltage:230
  7. Our plants into graphs Itaipu! is_neighbor Itá latitude:33.43 longitude:32:33 capacity:1400

    latitude:43.43 longitude:56:33 capacity:700 line_voltage:230 Node Relationship Attributes index
  8. Our plants into graphs Itaipu! feeds Foz do iguaçu latitude:33.43

    longitude:32:33 capacity:1400 population:265000 feeds Curitiba population:1700000
  9. Traversal - Search Itaipu! feeds Foz do iguaçu latitude:33.43 longitude:32:33

    capacity:1400 population:265000 feeds Curitiba population:1700000
  10. Neo4j - When should I not use? • NoSQL Hater?

    • Searches - BE CAREFUL (depth x width) • Cloud • Node Monitor • Infra (backup) • Limted RAM