Neo4j Gratabase

1,327 views

Published on

This is tony the tiger. This is not a talk on graph databases:
http://www.youtube.com/watch?v=4CQGbV8yrqw

Published in: Technology, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,327
On SlideShare
0
From Embeds
0
Number of Embeds
245
Actions
Shares
0
Downloads
18
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Neo4j Gratabase

    1. 1. #neo4j Graph Database (Gratabase)Peter Ehrlich – @ehrlicp www.GoDu.it
    2. 2. MySQL Users Postsid name email id user_id content
    3. 3. MySQL Joinsid name email post_id user_id content
    4. 4. Indexingid name email post_id user_id content 5 3 7 1 4 10
    5. 5. MySQLUsers users_posts Posts name email id user_id post_id favorited? id content ?
    6. 6. The Problem
    7. 7. Users Following Tweets id follower_id followee_id followee_id content me me you you breakfast you you me you lolcats+e6 more +e9 more +e12 more...
    8. 8. Neo4j + Neo4jrb
    9. 9. Nodes You
    10. 10. Nodes Ramses id: ’11’ _classname: ‘User’ name: ‘Ramses III’ role: ‘Pharaoh’START self = node(11)
    11. 11. Relationships You Josh Bob SamSTART self = node(11)MATCH (self)-[rel]->(followee)
    12. 12. Relationships You Josh Bob SamSTART self = node(11)MATCH (self)-[rel:following]->(followee)
    13. 13. Structure is information
    14. 14. Soup Pharaoh You :role :role :followJosh Bob Sam
    15. 15. Activity Feeds latest tweetYou older tweet older tweet older tweet START self = node(11) MATCH (self)-[rel:tweeted]->(tweet) WHERE tweet.deleted = false ORDER tweet.created_at LIMIT 10
    16. 16. Self-structured dataYoulatest tweet older tweet START self = node(11) MATCH (self)-[rel:tweeted*1..10]->(tweet) WHERE tweet.deleted = false older tweet older tweet
    17. 17. Meta Sam Bob :followJosh :posted Interesting Post
    18. 18. N-ary Relationships Sam BobJosh Post 1 Sam Bob :notifies An Action Josh Interesting Post
    19. 19. Personalization
    20. 20. Feature Switching You :follow Josh Sam Bob Sarah Sue :use Exciting Feature
    21. 21. Full-text searchFriends areStar relationsNotifications areN-ary relations A Feed combines linked lists Likes are star relationsComments arelinked lists
    22. 22. Resources http://www.slideshare.net/pehrlich/neo4j-gratabase @ehrlicpNeo4j Blog,Videosblog.neo4j.org, video.neo4j.orgGraph Theory Book:cs.cornell.edu/home/kleinber/networks-bookCool phd things with graphs:http://www.rene-pickhardt.deScaling twitter:http://hueniverse.com/2008/03/scaling-a-microblogging-service-part-i

    ×