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
ガバメントクラウドのセキュリティ対策事例について
fujisawaryohei
0
550
生成AIをより賢く エンジニアのための RAG入門 - Oracle AI Jam Session #20
kutsushitaneko
4
250
Storage Browser for Amazon S3
miu_crescent
1
200
C++26 エラー性動作
faithandbrave
2
750
宇宙ベンチャーにおける最近の情シス取り組みについて
axelmizu
0
110
スタートアップで取り組んでいるAzureとMicrosoft 365のセキュリティ対策/How to Improve Azure and Microsoft 365 Security at Startup
yuj1osm
0
220
ブラックフライデーで購入したPixel9で、Gemini Nanoを動かしてみた
marchin1989
1
540
開発生産性向上! 育成を「改善」と捉えるエンジニア育成戦略
shoota
2
390
20241214_WACATE2024冬_テスト設計技法をチョット俯瞰してみよう
kzsuzuki
3
510
小学3年生夏休みの自由研究「夏休みに Copilot で遊んでみた」
taichinakamura
0
160
ハイテク休憩
sat
PRO
2
160
フロントエンド設計にモブ設計を導入してみた / 20241212_cloudsign_TechFrontMeetup
bengo4com
0
1.9k
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
The Pragmatic Product Professional
lauravandoore
32
6.3k
Building Adaptive Systems
keathley
38
2.3k
Typedesign – Prime Four
hannesfritz
40
2.4k
Into the Great Unknown - MozCon
thekraken
33
1.5k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
Building Applications with DynamoDB
mza
91
6.1k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
Agile that works and the tools we love
rasmusluckow
328
21k
A Philosophy of Restraint
colly
203
16k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
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