SlideShare a Scribd company logo
GraphDB & RedisGraph
Presented by :
Md. Farhan Memon
Presented at :
Mumbai Redis Meetup
Mar 07, 2020
What to expect?
●Graphs & Graph DB structures
●RedisGraph
○ Features
○ Installation
○ Cypher
○ Commands
●RedisInsight
●Benchmarks
What is a Graph Database?
Node
50%
Edge
50%
N1
E1
N2
Database Trends
Database Structure
Database with Graph API!
Graph DB
Tabular / SQL
Name Gender
Arya
Stark
Female
Jon Snow Male
Tyrion
Lannister
Male
Src Dest
1 1
2 3
3 2
Name
House Stark of
Winterfell
House Lannister of
Casterly Rock
House Reed of
Greywater Watch
Character Belong House
NoSQL
id: 1
name: Arya Stark
gender: Female
type: Character
belongs: [5]
id: 5
name: House Stark of
Winterfell
region: The North
words: Winter is Coming
type: House
Graph DB
+
Index-free Adjacency
Graph Native DB
Adjacency List
1 432
Adjacency Matrix
1
2
3
1 2 3
1
1 1
1
2
3
RedisGraph
Features
●Property Graph
○ Nodes
○ Relationships
○ Labels / Relationship Types
○ Properties
name:
RedisGraph
name:
RedisLabs
name:
Md. Farhan
Event
Company
Person
sponsored_by
presented_by
{ on: 7/3/20 }
●Schema Less
●Cypher Query Language
●Supports Aggregations, Arithmetic exp., Sorts, etc.
●Tabular Resultset
●Faster & Better bulk loading
Installation
RedisGraph Installation
# Ubuntu/Linux
$ sudo apt-get install build-essential cmake m4 automake peg libtool autoconf
# Mac
$ brew install cmake m4 automake peg libtool autoconf
$ git clone --recurse-submodules -j8 https://github.com/RedisGraph/RedisGraph.git
$ cd RedisGraph
$ make
On successful execution, compiled binary could be found at:
src/redisgraph.so
Cypher Query Language
●Open Standard - Supported by several Graph DBs
●WHAT rather than HOW
●Pattern matching
○ ASCII art for Graphs
■ () : node
■ - - > : relationship
●Most clauses from SQL
MATCH (e:Event)-[presented_by]->(p:Person)
WHERE e.name = “RedisGraph”
RETURN e.name, p.name
Commands
Commands
●GRAPH.QUERY [GraphName] [Query]
● GRAPH.EXPLAIN [GraphName] [Query]
●GRAPH.DELETE [GraphName]
A Quick Demo
CREATE (:Rider { name: 'Valentino Rossi' })-[:rides]->(:Team { name: 'Yamaha' }),
(:Rider { name: 'Dani Pedrosa' })-[:rides]->(:Team { name: 'Honda' }),
(:Rider { name: 'Andrea Dovizioso' })-[:rides]->(:Team { name: 'Ducati' })
MATCH (r:Rider)-[:rides]->(t:Team)
WHERE t.name = ‘Yamaha’
RETURN r, t
MATCH (r:Rider)-[:rides]->(t:Team { name: 'Ducati' })
RETURN count(r)
Queries
Graph Visualisation
RedisInsight Installation
●Download RedisInsight for Desktop from https://redislabs.com/redisinsight/
●Ubuntu
○ chmod +x redisinsight-<platform>-<version>
●Windows & Mac
○ Run the installer
●Run the executable: ./redisinsight-<platform>-<version>
●After the web server starts, open http://127.0.0.1:8001
●Add your first Redis database connection
Game of Thrones
-
Visualising the Complex Game
How to know
When you need Graph Database???
Use Case Scoring for RedisGraph
Use Cases
●Fraud Detection
●Recommendation Engine
●Social Networks
●Network Load Balancing
●Quickest Route to work
And many more...
Benchmarks
Data Sets
Name Description Vertices Edges
graph500 Synthetic Kronecker graph 2.4 M 64 M
twitter Twitter user-follower directed
graph
41.6 M 1.47 B
●K-hop path query time
●RedisGraph version: 1.0.0 GA
●Dated: January 2019
Benchmarks
Benchmarks
Benchmarks
Benchmarks
Md. Farhan Memon
/mdfarhanmemon
#Redis #MumbaiRedisMeetup #RedisLabs #RedisGraph #BombayShirts

More Related Content

PPTX
Introduction to Redis
PDF
Kubernetes design principles, patterns and ecosystem
PDF
Airflow at lyft for Airflow summit 2020 conference
PDF
Introduction to MLflow
PDF
Accelerate Your ML Pipeline with AutoML and MLflow
PPTX
Modern CI/CD Pipeline Using Azure DevOps
PDF
Techdays Helsinki - Creating the distributed apps of the future using dapr - ...
PDF
Building Applications with a Graph Database
Introduction to Redis
Kubernetes design principles, patterns and ecosystem
Airflow at lyft for Airflow summit 2020 conference
Introduction to MLflow
Accelerate Your ML Pipeline with AutoML and MLflow
Modern CI/CD Pipeline Using Azure DevOps
Techdays Helsinki - Creating the distributed apps of the future using dapr - ...
Building Applications with a Graph Database

What's hot (20)

PDF
Introduction to Terraform and Google Cloud Platform
PPTX
PPTX
Presto: SQL-on-anything
PDF
The truth about "You build it, you run it!"
PDF
DVC - Git-like Data Version Control for Machine Learning projects
PPTX
How Zillow Unlocked Kafka to 50 Teams in 8 months | Shahar Cizer Kobrinsky, Z...
PDF
RedisGraph A Low Latency Graph DB: Pieter Cailliau
PDF
Azure Pipeline Tutorial | Azure DevOps Tutorial | Edureka
PDF
How to upgrade like a boss to MySQL 8.0 - PLE19
PDF
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
PDF
Intro to Cypher
PDF
Webinar: Working with Graph Data in MongoDB
PPTX
MongoDB.pptx
PDF
Continuous integration using Jenkins and Sonar
PDF
Neo4j GraphDay Seattle- Sept19- neo4j basic training
PDF
Koalas: Making an Easy Transition from Pandas to Apache Spark
PDF
Bulk Loading Data into Cassandra
PPTX
GraphQL Introduction
PPTX
Introduction to DevOps
PDF
Trino: A Ludicrously Fast Query Engine - Pulsar Summit NA 2021
Introduction to Terraform and Google Cloud Platform
Presto: SQL-on-anything
The truth about "You build it, you run it!"
DVC - Git-like Data Version Control for Machine Learning projects
How Zillow Unlocked Kafka to 50 Teams in 8 months | Shahar Cizer Kobrinsky, Z...
RedisGraph A Low Latency Graph DB: Pieter Cailliau
Azure Pipeline Tutorial | Azure DevOps Tutorial | Edureka
How to upgrade like a boss to MySQL 8.0 - PLE19
Backstage l'Internal Developer Portal Open Source per una migliore Developer ...
Intro to Cypher
Webinar: Working with Graph Data in MongoDB
MongoDB.pptx
Continuous integration using Jenkins and Sonar
Neo4j GraphDay Seattle- Sept19- neo4j basic training
Koalas: Making an Easy Transition from Pandas to Apache Spark
Bulk Loading Data into Cassandra
GraphQL Introduction
Introduction to DevOps
Trino: A Ludicrously Fast Query Engine - Pulsar Summit NA 2021
Ad

Similar to Graph Databases - RedisGraph and RedisInsight (20)

PDF
Introduction to Graph Databases with Neo4J
PDF
Neo4j Morpheus: Interweaving Table and Graph Data with SQL and Cypher in Apac...
PDF
Apache Spark - Dataframes & Spark SQL - Part 1 | Big Data Hadoop Spark Tutori...
PDF
Neo4j Morpheus: Interweaving Documents, Tables and and Graph Data in Spark wi...
PDF
Introduction to Spark Datasets - Functional and relational together at last
PDF
Montreal Sql saturday: moving data from no sql db to azure data lake
PDF
Nko workshop - node js & nosql
PPTX
Mapping Relational Databases to Linked Data
PPT
Hands on Training – Graph Database with Neo4j
PPTX
Graph database
PDF
Introduction to dataset
ODP
Bogdan Kecman Advanced Databasing
PDF
A Journey from Relational to Graph
PPTX
Neo4j introduction
PDF
Neo4j Graph Database และการประยุกตร์ใช้
PDF
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
PPTX
Introduction to SQL Server Graph DB
PDF
Neo4j: Graph-like power
PDF
Understanding Graph Databases with Neo4j and Cypher
Introduction to Graph Databases with Neo4J
Neo4j Morpheus: Interweaving Table and Graph Data with SQL and Cypher in Apac...
Apache Spark - Dataframes & Spark SQL - Part 1 | Big Data Hadoop Spark Tutori...
Neo4j Morpheus: Interweaving Documents, Tables and and Graph Data in Spark wi...
Introduction to Spark Datasets - Functional and relational together at last
Montreal Sql saturday: moving data from no sql db to azure data lake
Nko workshop - node js & nosql
Mapping Relational Databases to Linked Data
Hands on Training – Graph Database with Neo4j
Graph database
Introduction to dataset
Bogdan Kecman Advanced Databasing
A Journey from Relational to Graph
Neo4j introduction
Neo4j Graph Database และการประยุกตร์ใช้
3rd Athens Big Data Meetup - 2nd Talk - Neo4j: The World's Leading Graph DB
Introduction to SQL Server Graph DB
Neo4j: Graph-like power
Understanding Graph Databases with Neo4j and Cypher
Ad

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
sap open course for s4hana steps from ECC to s4
PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
DOCX
The AUB Centre for AI in Media Proposal.docx
Advanced methodologies resolving dimensionality complications for autism neur...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
sap open course for s4hana steps from ECC to s4
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
“AI and Expert System Decision Support & Business Intelligence Systems”
MYSQL Presentation for SQL database connectivity
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Programs and apps: productivity, graphics, security and other tools
Review of recent advances in non-invasive hemoglobin estimation
Diabetes mellitus diagnosis method based random forest with bat algorithm
The AUB Centre for AI in Media Proposal.docx

Graph Databases - RedisGraph and RedisInsight