Facebook Pixel
Searching...
English
EnglishEnglish
EspañolSpanish
简体中文Chinese
FrançaisFrench
DeutschGerman
日本語Japanese
PortuguêsPortuguese
ItalianoItalian
한국어Korean
РусскийRussian
NederlandsDutch
العربيةArabic
PolskiPolish
हिन्दीHindi
Tiếng ViệtVietnamese
SvenskaSwedish
ΕλληνικάGreek
TürkçeTurkish
ไทยThai
ČeštinaCzech
RomânăRomanian
MagyarHungarian
УкраїнськаUkrainian
Bahasa IndonesiaIndonesian
DanskDanish
SuomiFinnish
БългарскиBulgarian
עבריתHebrew
NorskNorwegian
HrvatskiCroatian
CatalàCatalan
SlovenčinaSlovak
LietuviųLithuanian
SlovenščinaSlovenian
СрпскиSerbian
EestiEstonian
LatviešuLatvian
فارسیPersian
മലയാളംMalayalam
தமிழ்Tamil
اردوUrdu
Graph Databases

Graph Databases

New Opportunities for Connected Data
by Ian Robinson 2015 236 pages
3.63
100+ ratings
Listen

Key Takeaways

1. Graph databases excel at managing highly connected data

Graphs are truly remarkable structures. Our understanding of them is rooted in hundreds of years of mathematical and scientific study. And yet we're only just beginning to understand how to apply them to our personal, social, and business lives.

Connected data challenges: Traditional relational databases struggle with highly interconnected data, facing performance issues as the number of joins increases. Graph databases address this by using a network model that naturally represents and efficiently queries relationships.

Use cases: Graph databases shine in domains with complex relationships:

  • Social networks
  • Recommendation engines
  • Fraud detection
  • Network and IT operations
  • Master data management

Performance advantages: For queries involving multiple connections, graph databases can be orders of magnitude faster than relational databases, especially as data size and complexity grow.

2. Property graphs offer a flexible and intuitive data model

The labeled property graph model (in Appendix A, we discuss alternative graph data models in more detail). A labeled property graph has the following characteristics:

Key components:

  • Nodes: Represent entities
  • Relationships: Connect nodes, are named and directional
  • Properties: Key-value pairs on both nodes and relationships
  • Labels: Categorize nodes (multiple labels per node allowed)

Advantages:

  • Intuitive: Closely mirrors how we naturally think about and sketch data
  • Flexible: Easily accommodates changing requirements and data structures
  • Expressive: Captures complex scenarios with clarity

Whiteboard friendly: The property graph model often allows developers to directly implement data structures sketched during analysis and design phases.

3. Cypher: A powerful declarative query language for graphs

Cypher is an expressive (yet compact) graph database query language. Although currently specific to Neo4j, its close affinity with our habit of representing graphs as diagrams makes it ideal for programmatically describing graphs.

ASCII art patterns: Cypher uses intuitive ASCII art to describe graph patterns, making queries easy to read and write.

Key components:

  • MATCH: Specify patterns to find in the graph
  • WHERE: Filter results
  • RETURN: Specify what data to retrieve
  • CREATE/MERGE: Add new data to the graph

Declarative nature: Developers describe what they want to find, not how to find it, allowing the database to optimize query execution.

4. Graph modeling focuses on relationships between entities

Graph modeling naturally fits with the way we tend to abstract details from a domain using circles and boxes, and then describe the connections between these things by joining them with arrows and lines.

Domain-driven modeling: Graph data models closely reflect the structure of the problem domain, reducing the semantic gap between conceptual models and database implementation.

Iterative development: Graph models are easily evolved as requirements change:

  • Add new node types and relationships
  • Extend existing structures without disrupting current queries
  • Refactor by introducing or removing intermediate nodes

Best practices:

  • Model for query patterns, not just data storage
  • Use meaningful relationship names
  • Consider bidirectional relationships when appropriate
  • Use node labels to categorize entities

5. Native graph processing enables high-performance traversals

A database engine that utilizes index-free adjacency is one in which each node maintains direct references to its adjacent nodes. Each node, therefore, acts as a micro-index of other nearby nodes, which is much cheaper than using global indexes.

Index-free adjacency: Nodes directly reference their neighbors, eliminating the need for index lookups during traversals.

Performance implications:

  • Traversal time is proportional to the number of nodes visited, not the total size of the graph
  • Enables extremely fast navigation of relationships
  • Particularly efficient for localized queries (e.g., finding friends-of-friends)

Contrast with relational model: Joins in relational databases become increasingly expensive as data size grows, while graph traversals maintain consistent performance.

6. Graph databases support ACID transactions and scalability

Transactions in Neo4j are semantically identical to traditional database transactions. Writes occur within a transaction context, with write locks being taken for consistency purposes on any nodes and relationships involved in the transaction.

ACID compliance: Many graph databases, including Neo4j, provide full ACID (Atomicity, Consistency, Isolation, Durability) transaction support.

Scalability options:

  • Read scaling: Distribute read queries across multiple replicas
  • Write scaling: Some graph databases offer sharding for write scalability
  • Cache sharding: Optimize for graph-local queries across cluster

High availability: Clustering and replication strategies ensure continuous operation and data consistency.

7. Graph theory algorithms unlock predictive insights

Graph theory techniques are broadly applicable to a wide range of problems. They are especially useful when we first want to gain some insight into a new domain — or even understand what kind of insight it's possible to extract from a domain.

Key algorithms:

  • Shortest path (e.g., Dijkstra's algorithm)
  • Centrality measures
  • Community detection
  • Similarity calculations

Predictive power: Graph algorithms can reveal hidden patterns and connections:

  • Identify influencers in social networks
  • Detect potential fraud rings
  • Optimize supply chains and logistics
  • Improve recommendation systems

Integration with machine learning: Graph features and algorithms can enhance traditional machine learning models, providing additional context and relationship information.

Last updated:

Review Summary

3.63 out of 5
Average of 100+ ratings from Goodreads and Amazon.

Graph Databases receives mixed reviews, with an average rating of 3.63/5. Readers appreciate its introduction to graph database concepts and Neo4j, but criticize its focus on Neo4j rather than graph databases in general. The book is praised for clear explanations and real-world examples, but some find it overly enthusiastic and lacking in technical depth. Many reviewers note its value as a starter guide for those new to graph databases, while more experienced readers may find it too basic. The writing style and structure receive both positive and negative comments.

Your rating:

About the Author

Ian Robinson is an author and technologist known for his work on graph databases. While specific biographical details are limited, he is recognized as one of the creators and core developers of Neo4j, a prominent graph database system. Ian Robinson has contributed significantly to the field of graph database technology through his writing and development work. His expertise in this area is evident in the book "Graph Databases," which he co-authored. Robinson's work focuses on explaining and promoting the use of graph databases in various applications, emphasizing their potential benefits over traditional relational databases for certain types of data modeling and querying.

Download PDF

To save this Graph Databases summary for later, download the free PDF. You can print it out, or read offline at your convenience.
Download PDF
File size: 0.38 MB     Pages: 9

Download EPUB

To read this Graph Databases summary on your e-reader device or app, download the free EPUB. The .epub digital book format is ideal for reading ebooks on phones, tablets, and e-readers.
Download EPUB
File size: 3.11 MB     Pages: 7
0:00
-0:00
1x
Dan
Andrew
Michelle
Lauren
Select Speed
1.0×
+
200 words per minute
Create a free account to unlock:
Bookmarks – save your favorite books
History – revisit books later
Ratings – rate books & see your ratings
Unlock unlimited listening
Your first week's on us!
Today: Get Instant Access
Listen to full summaries of 73,530 books. That's 12,000+ hours of audio!
Day 4: Trial Reminder
We'll send you a notification that your trial is ending soon.
Day 7: Your subscription begins
You'll be charged on Nov 22,
cancel anytime before.
Compare Features Free Pro
Read full text summaries
Summaries are free to read for everyone
Listen to summaries
12,000+ hours of audio
Unlimited Bookmarks
Free users are limited to 10
Unlimited History
Free users are limited to 10
What our users say
30,000+ readers
“...I can 10x the number of books I can read...”
“...exceptionally accurate, engaging, and beautifully presented...”
“...better than any amazon review when I'm making a book-buying decision...”
Save 62%
Yearly
$119.88 $44.99/yr
$3.75/mo
Monthly
$9.99/mo
Try Free & Unlock
7 days free, then $44.99/year. Cancel anytime.
Settings
Appearance