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
570
Beautiful Riak
vonstark
2
590
Design the graph data with nosql
vonstark
3
650
Other Decks in Technology
See All in Technology
来年もre:Invent2024 に行きたいあなたへ - “集中”と“つながり”で楽しむ -
ny7760
0
450
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
9
120k
で、ValhallaのValue Classってどうなったの?
skrb
1
660
グローバル展開を見据えたサービスにおける機械翻訳プラクティス / dp-ai-translating
cyberagentdevelopers
PRO
1
150
フルカイテン株式会社 採用資料
fullkaiten
0
36k
2024-10-30-reInventStandby_StudyGroup_Intro
shinichirokawano
1
610
分布で見る効果検証入門 / ai-distributional-effect
cyberagentdevelopers
PRO
4
690
ガバメントクラウド先行事業中間報告を読み解く
sugiim
1
1k
GitHub Universe: Evaluating RAG apps in GitHub Actions
pamelafox
0
170
Figma Dev Modeで進化するデザインとエンジニアリングの協働 / figma-with-engineering
cyberagentdevelopers
PRO
1
430
わたしとトラックポイント / TrackPoint tips
masahirokawahara
1
240
サイバーエージェントにおける生成AIのリスキリング施策の取り組み / cyber-ai-reskilling
cyberagentdevelopers
PRO
2
180
Featured
See All Featured
Scaling GitHub
holman
458
140k
Making the Leap to Tech Lead
cromwellryan
132
8.9k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
Fontdeck: Realign not Redesign
paulrobertlloyd
81
5.2k
Into the Great Unknown - MozCon
thekraken
31
1.5k
Art, The Web, and Tiny UX
lynnandtonic
296
20k
Testing 201, or: Great Expectations
jmmastey
38
7k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
790
We Have a Design System, Now What?
morganepeng
50
7.2k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
355
29k
A designer walks into a library…
pauljervisheath
202
24k
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