Neo4j Gratabase

  • 776 views
Uploaded on

This is tony the tiger. This is not a talk on graph databases: …

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

More in: Technology , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
776
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
14
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    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

Transcript

  • 1. #neo4j Graph Database (Gratabase)Peter Ehrlich – @ehrlicp www.GoDu.it
  • 2. MySQL Users Postsid name email id user_id content
  • 3. MySQL Joinsid name email post_id user_id content
  • 4. Indexingid name email post_id user_id content 5 3 7 1 4 10
  • 5. MySQLUsers users_posts Posts name email id user_id post_id favorited? id content ?
  • 6. The Problem
  • 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. Neo4j + Neo4jrb
  • 9. Nodes You
  • 10. Nodes Ramses id: ’11’ _classname: ‘User’ name: ‘Ramses III’ role: ‘Pharaoh’START self = node(11)
  • 11. Relationships You Josh Bob SamSTART self = node(11)MATCH (self)-[rel]->(followee)
  • 12. Relationships You Josh Bob SamSTART self = node(11)MATCH (self)-[rel:following]->(followee)
  • 13. Structure is information
  • 14. Soup Pharaoh You :role :role :followJosh Bob Sam
  • 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. 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. Meta Sam Bob :followJosh :posted Interesting Post
  • 18. N-ary Relationships Sam BobJosh Post 1 Sam Bob :notifies An Action Josh Interesting Post
  • 19. Personalization
  • 20. Feature Switching You :follow Josh Sam Bob Sarah Sue :use Exciting Feature
  • 21. Full-text searchFriends areStar relationsNotifications areN-ary relations A Feed combines linked lists Likes are star relationsComments arelinked lists
  • 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