Graph Database
The 4 Types of NoSQL
DatabaseKey-Value
In-memory Database
Document Database
Graph Database
Graph Database Define
a database that uses graph structures for semantic
queries with nodes, edges and properties to
represent and store data – independent of the way
the data is stored internally. It’s really the model and
the implemented algorithms that matter.
Scenario
Joel Hans Embiid 曾爆出過他⾃自⼰己 PS 的⼀一張圖,隔空⽰示愛 Rihanna
Graph Database
Much Data
Why do I need Graph
Database
1. 更更快的資料庫操作。當然,有⼀一個前提條件,那就是數據量量較⼤大,在MySql中存儲的話
需要許多表,並且表之間聯聯繫較多(即有不少的操作需要join表)。
2. 數據更更直觀,相應的SQL語句句也更更好寫(Neo4j使⽤用Cypher語⾔言,與傳統SQL有很
⼤大不同)。
3. 更更靈活。不管有什什麼新的數據需要存儲,都是⼀一律律的節點和邊,只需要考慮節
點屬性和邊屬性。⽽而MySql中即意味著新的表,還要考慮和其他表的關係。
4. 資料庫操作的速度並不會隨著資料庫的增⼤大有明顯的降低。這得益於Neo4j特殊的
數據存儲結構和專⾨門優化的圖算法。
Risk
1. 無法並⾏行行運算
2. 無法有效率的顯⽰示即時資料結構
3. 應付⼤大量量更更新會很吃⼒力力
Summary
A graph database is a database designed to treat the
relationships between data as equally important to the data itself.
It is intended to hold data without constricting it to a pre-defined
model. Instead, the data is stored like we first draw it out –
showing how each individual entity connects with or is related to
others.
Reference
https://neo4j.com/developer/graph-database/
Q & A

Graph database

  • 1.
  • 2.
    The 4 Typesof NoSQL DatabaseKey-Value In-memory Database Document Database Graph Database
  • 3.
    Graph Database Define adatabase that uses graph structures for semantic queries with nodes, edges and properties to represent and store data – independent of the way the data is stored internally. It’s really the model and the implemented algorithms that matter.
  • 4.
    Scenario Joel Hans Embiid曾爆出過他⾃自⼰己 PS 的⼀一張圖,隔空⽰示愛 Rihanna
  • 5.
  • 6.
  • 7.
    Why do Ineed Graph Database 1. 更更快的資料庫操作。當然,有⼀一個前提條件,那就是數據量量較⼤大,在MySql中存儲的話 需要許多表,並且表之間聯聯繫較多(即有不少的操作需要join表)。 2. 數據更更直觀,相應的SQL語句句也更更好寫(Neo4j使⽤用Cypher語⾔言,與傳統SQL有很 ⼤大不同)。 3. 更更靈活。不管有什什麼新的數據需要存儲,都是⼀一律律的節點和邊,只需要考慮節 點屬性和邊屬性。⽽而MySql中即意味著新的表,還要考慮和其他表的關係。 4. 資料庫操作的速度並不會隨著資料庫的增⼤大有明顯的降低。這得益於Neo4j特殊的 數據存儲結構和專⾨門優化的圖算法。
  • 8.
  • 9.
    Summary A graph databaseis a database designed to treat the relationships between data as equally important to the data itself. It is intended to hold data without constricting it to a pre-defined model. Instead, the data is stored like we first draw it out – showing how each individual entity connects with or is related to others.
  • 10.
  • 11.