Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduce Neo4j - Graph Database
Search
vonstark
April 01, 2012
Technology
2
420
Introduce Neo4j - Graph Database
Neo4j 介紹.
Ps. MeetCliv目前轉型中. 有興去的可以私底下問我.. :p
vonstark
April 01, 2012
Tweet
Share
More Decks by vonstark
See All by vonstark
Introducing Riak
vonstark
1
120
Enable high coucurrent & availability with Goliath
vonstark
2
590
Beautiful Riak
vonstark
2
590
Design the graph data with nosql
vonstark
3
660
Other Decks in Technology
See All in Technology
podman_update_2024-12
orimanabu
1
280
MLOps の現場から
asei
7
650
1等無人航空機操縦士一発試験 合格までの道のり ドローンミートアップ@大阪 2024/12/18
excdinc
0
170
フロントエンド設計にモブ設計を導入してみた / 20241212_cloudsign_TechFrontMeetup
bengo4com
0
1.9k
Opcodeを読んでいたら何故かphp-srcを読んでいた話
murashotaro
0
280
kargoの魅力について伝える
magisystem0408
0
210
DevOps視点でAWS re:invent2024の新サービス・アプデを振り返ってみた
oshanqq
0
180
マイクロサービスにおける容易なトランザクション管理に向けて
scalar
0
140
非機能品質を作り込むための実践アーキテクチャ
knih
5
1.5k
Google Cloud で始める Cloud Run 〜AWSとの比較と実例デモで解説〜
risatube
PRO
0
110
TSKaigi 2024 の登壇から広がったコミュニティ活動について
tsukuha
0
160
なぜCodeceptJSを選んだか
goataka
0
160
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Documentation Writing (for coders)
carmenintech
66
4.5k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
170
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Code Review Best Practice
trishagee
65
17k
Transcript
Build Facebook Like Relationships with Neo4j by Von Stark Tuesday,
October 11, 11
Von Stark I am : Starter, Programmer ,Backpacker Use :
Ruby, Rails, Erlang, Neo4j co-founder at meetcliv.com founder at neo4j.tw Engineer at Roodo tech co-founder at theprosbank.com co-founder at envionow.com Sales at 365biotech Tuesday, October 11, 11
4 W & 1 H What Why Who When How
Tuesday, October 11, 11
What is Neo4j Java & Lucene - NeoTechnology Embedded Document
High Availability & FailOver. A(atomicity) C(consistency) I(isolation) D(durability) Ꮘೳ࠷ՂతGraph Database Tuesday, October 11, 11
What can it do? Social Network Graph Network Complex Relationships
Make database like natural Tuesday, October 11, 11
What is the difference as Object Oriented DB Data preset
as Node & Edge (Objects) More functions to traverse Friendly API Schema = set of Class (Independent) Tuesday, October 11, 11
Why to use graph - Web3.0 ࢿྉܕࣜ 1999 2000 2010
2020 Tuesday, October 11, 11
Why to use Graph - Complexity Ꮘೳ ࢿྉෳᯑ Tuesday, October
11, 11
Why to use Graph - Whiteboard Friendly Tuesday, October 11,
11
Why to use Graph - Whiteboard Friendly Tuesday, October 11,
11
Why to use graph - Reasons धཁᅷܗ᮫፺ࡧ ༗ෳᯑฒᎷࢄ(ల։)తࢿྉઅߏ গ෦㟨తࢿྉ ->
ඞཁ,େ෦㟨తࢿྉ -> ඇඞཁ SQLதڐଟࢿྉදੋඳड़ࢿྉ᮫ੑ ࡏSQL༻ྃଠଟJoin Tuesday, October 11, 11
Who use graph Tuesday, October 11, 11
When to use graph ቮ༗େྔ᮫धཁ႔ཧ ༗ࢿۚతۀᅶୂ ቮख़ࣩGraph֓೦ SQL҃ҰൠKey/ValeతNoSQLቮෆҎጯ Tuesday, October
11, 11
When to use graph ቮ༗େྔ᮫धཁ႔ཧ ༗ࢿۚతۀᅶୂ ቮख़ࣩGraph֓೦ SQL҃ҰൠKey/ValeతNoSQLቮෆҎጯ ٣ଠ Tuesday,
October 11, 11
How is the performance Tuesday, October 11, 11
Interested? Tuesday, October 11, 11
Connect Ruby / Python / Clojure / PHP / Java
/ Scala / Erlang / Groovy / Restful .... Rails / Grails / Griffon / Qi4j / Roo... Tuesday, October 11, 11
Clients PHP - Thrift / Protobuffers / PHP- Java Bridge
Ruby - JRuby + Neo4j.rb Python - JPython / CPython + JCC / Neo4j.py Tuesday, October 11, 11
Some Examples Tuesday, October 11, 11
Remember It Relationship Node Node Tuesday, October 11, 11
Remember It Relationship Node Node Relationship Node Node Tuesday, October
11, 11
Relationship - FoF - 1 level me.outgoing(:friends).depth(1) Me Tuesday, October
11, 11
Relationship - FoF - 2 level me.outgoing(:friends).depth(2) Me Tuesday, October
11, 11
Relationship - FoF - 3 level me.outgoing(:friends).depth(3) Me Tuesday, October
11, 11
Relationship - FoF - n level me.outgoing(:friends).depth(n) Tuesday, October 11,
11
Filters filter / prune Evaluator - INCLUDE_AND_CONTINUE INCLUDE_AND_PRUNE EXCLUDE_AND_DISCONTINUE EXCLUDE_AND_CONTINUE
Tuesday, October 11, 11
Complex Example FoF who lives in Taipei also like Jazz
Taipei Me Jazz Lives Like Friend Tuesday, October 11, 11
Complex Example FoF who lives in Taipei also like Jazz
Taipei Me Jazz Lives Like Friend Tuesday, October 11, 11
me.outgoing(:friend).depth(:all).filter{|path_to_m| path_to_m.end_node.outgoing(:lives).filter{|path_to_live| path_to_live==”Taipei” }.outgoing(:like).filter{|path_to_like| path_to_live==”Jazz” } } SQL ?&^@#%$@)JOIN *&@^
JOIN *@^$ JOIN &@&# JOIN (*@#^ JOIN !&@ JOIN Neo4j Tuesday, October 11, 11
BranchSelector preorderDepthFirst - ਂ༏ઌ,ઌ႔ཧ postorderDepthFirst - ਂ༏ઌ,ޙ႔ཧ preorderBreadthFirst - ኍ༏ઌ,ઌ႔ཧ
postorderBreadthFirst - ኍ༏ઌ,ޙ႔ཧ ਂ༏ઌ௨ৗֱ༻هԱᱪ Tuesday, October 11, 11
Other CRUD Batch Insertion Range Query Compound Query Uniqueness Expand
and more... Tuesday, October 11, 11
Caching File Buffer Cache Object Cache 5~10 times faster as
file cache for read Memory eater Tuesday, October 11, 11
Scale - 1 Tuesday, October 11, 11
Scale - 2 Tuesday, October 11, 11
Web-Admin Dashboard Data Browser Console Tuesday, October 11, 11
Visual Tools Flare NeoClipse Arbor.js Dracula more... Tuesday, October 11,
11
Other Graph DB Dex OrientDB VertexDB Pregel - Very Mystery
Allegro - Performance just fine FlockDB - One Layer, Based on MySQL InfiniteGraph Tuesday, October 11, 11
NoSQL খᡉ 㑌݄1࣍ ओࣜަྲྀ ኍᬐ֤छNoSQL༻ៃᱛ ᓣܴላश,༗༻ៃᱛ,༻ԙ㗞த,ߴख... Tuesday, October 11, 11
࣌ؒ 㑌ݸਓऐሚ,ੋఔෆಉ Tuesday, October 11, 11
࣌ؒ ೝࣝᡅಘိత৽๎༑ 㑌ݸਓऐሚ,ੋఔෆಉ Tuesday, October 11, 11
࣌ؒ Marketing Angel Investor Backend Engineer ೝࣝᡅಘိత৽๎༑ 㑌ݸਓऐሚ,ੋఔෆಉ Tuesday, October
11, 11
Q & A Blog : vonstark.co FB : facebook.com/vonstark Twitter
: vonstark32 Contact :
[email protected]
Tuesday, October 11, 11