NoSQL: Graph Databases

Slides:



Advertisements
Similar presentations
2 Proprietary & Confidential What is Sharding Benefits of Sharding Alternatives of Sharding When to start Sharding Agenda.
Advertisements

Jennifer Widom NoSQL Systems Overview (as of November 2011 )
Reporter: Haiping Wang WAMDM Cloud Group
Regions of Interest.  What’s in a ROI?  Use cases  Requirements  Current Storage System  Problems  Alternative Storage.
NoSQL and NewSQL Justin DeBrabant CIS Advanced Systems - Fall 2013.
Neo4j Adam Foust.
NoSQL Database.
CS 405G: Introduction to Database Systems 24 NoSQL Reuse some slides of Jennifer Widom Chen Qian University of Kentucky.
Massively Parallel Cloud Data Storage Systems S. Sudarshan IIT Bombay.
1 Yasin N. Silva Arizona State University This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Distributed Data Stores and No SQL Databases S. Sudarshan IIT Bombay.
AN INTRODUCTION TO NOSQL DATABASES Karol Rástočný, Eduard Kuric.
SQL vs NOSQL Discussion
Distributed Data Stores and No SQL Databases S. Sudarshan Perry Hoekstra (Perficient) with slides pinched from various sources such as Perry Hoekstra (Perficient)
Modern Databases NoSQL and NewSQL Willem Visser RW334.
Changwon Nati Univ. ISIE 2001 CSCI5708 NoSQL looks to become the database of the Internet By Lawrence Latif Wed Dec Nhu Nguyen and Phai Hoang CSCI.
NoSQL Databases Oracle - Berkeley DB. Content A brief intro to NoSQL About Berkeley Db About our application.
Methodological Foundations of Biomedical Informatics (BMSC-GA 4449) Himanshu Grover.
NOSQL Implementation and examples Maciej Matuszewski.
NoSQL Or Peles. What is NoSQL A collection of various technologies meant to work around RDBMS limitations (mostly performance) Not much of a definition...
NoSQL Systems Motivation. NoSQL: The Name  “SQL” = Traditional relational DBMS  Recognition over past decade or so: Not every data management/analysis.
NOSQL DATABASE Not Only SQL DATABASE
Graphs Basic properties.
NoSQL: Graph Databases. Databases Why NoSQL Databases?
Data and Information Systems Laboratory University of Illinois Urbana-Champaign Data Mining Meeting Mar, From SQL to NoSQL Xiao Yu Mar 2012.
CPT-S Advanced Databases 11 Yinghui Wu EME 49.
NoSQL databases A brief introduction NoSQL databases1.
@jrobinson954
Content Analytics - Gaining Insight from Your Content with NOSQL.
Group members: Phạm Hoàng Long Nguyễn Huy Hùng Lê Minh Hiếu Phan Thị Thanh Thảo Nguyễn Đức Trí 1 BIG DATA & NoSQL Topic 1:
Dive into NoSQL with Azure Niels Naglé Hylke Peek.
NoSQL: Graph Databases
Introduction to Mongo DB(NO SQL data Base)
Neo4j: GRAPH DATABASE 27 March, 2017
2 Phase Commit Protocol In transaction processing, databases, and computer networking, the two-phase commit protocol (2PC) is a type of atomic commitment.
Database Systems: Design, Implementation, and Management Tenth Edition
CS 405G: Introduction to Database Systems
NoSQL Know Your Enemy Shelly Noll Learning Care Group, Novi, MI
NO SQL for SQL DBA Dilip Nayak & Dan Hess.
DBSI Teaser Presentation
and Big Data Storage Systems
Column-Based.
NoSQL Know Your Enemy Shelly Noll SRT Solutions, Ann Arbor, MI
CS122B: Projects in Databases and Web Applications Winter 2017
A free and open-source distributed NoSQL database
Based on: NoSQL Databases Based on:
Data and Applications Security Developments and Directions
Introduction In the computing system (web and business applications), there are enormous data that comes out every day from the web. A large section of.
NoSQL Know Your Enemy Shelly Noll SRT Solutions, Ann Arbor, MI
MongoDB Er. Shiva K. Shrestha ME Computer, NCIT
Every Good Graph Starts With
NoSQL Database and Application
Introduction & Options for Storing Connected Data
Azure Cosmos DB Venitta J Microsoft Connect /6/2018 4:36 PM
Modern Databases NoSQL and NewSQL
NOSQL.
NOSQL databases and Big Data Storage Systems
NoSQL Systems Overview (as of November 2011).
Network Visualization
Massively Parallel Cloud Data Storage Systems
1 Demand of your DB is changing Presented By: Ashwani Kumar
NOSQL and CAP Theorem.
NoSQL Databases Antonino Virgillito.
NoSQL Not Only SQL University of Kurdistan Faculty of Engineering
A gentle introduction to graph databases
Database Systems Summary and Overview
April 13th – Semi-structured data
relational thoughts on NoSql
Introduction to NoSQL Database Systems
NoSQL databases An introduction and comparison between Mongodb and Mysql document store.
Presentation transcript:

NoSQL: Graph Databases

Databases Why NoSQL Databases?

Trends in Data

Data is getting bigger: “Every 2 days we create as much information as we did up to 2003” – Eric Schmidt, Google

Data is more connected: Text HyperText RSS Blogs Tagging RDF

Trend 2: Connectedness Information connectivity GGG Onotologies RDFa Folksonomies Tagging Wikis Information connectivity UGC Blogs UGC = User Generated Content GGG = Giant Global Graph (what the web will become) Feeds Hypertext Text Documents

Data is more Semi-Structured: If you tried to collect all the data of every movie ever made, how would you model it? Actors, Characters, Locations, Dates, Costs, Ratings, Showings, Ticket Sales, etc.

Architecture Changes Over Time 1980’s: Single Application Application DB

Architecture Changes Over Time 1990’s: Integration Database Antipattern Application Application Application DB

Architecture Changes Over Time 2000’s: SOA RESTful, hypermedia, composite apps DB Application DB Application DB Application

Side note: RDBMS performance Salary list Most Web apps Social Network This is strictly about connected data – joins kill performance there. No bashing of RDBMS performance for tabular transaction processing Green line denotes “zone of SQL adequacy” Location-based services

NOSQL Not Only SQL

Less than 10% of the NOSQL Vendors

Key Value Stores Came from a research article written by Amazon (Dynamo) Global Distributed Hash Table Global collection of key value pairs

Four NOSQL Categories

Key Value Stores Most Based on Dynamo: Amazon Highly Available Key-Value Store Data Model: Global key-value mapping Big scalable HashMap Highly fault tolerant (typically) Examples: Redis, Riak, Voldemort

Key Value Stores: Pros and Cons Simple data model Scalable Cons Poor for complex data

Column Family Most Based on BigTable: Google’s Distributed Storage System for Structured Data Data Model: A big table, with column families Every row can have its own schema Helps capture more “messy” data Map Reduce for querying/processing Examples: HBase, HyperTable, Cassandra

Column Family: Pros and Cons Supports Simi-Structured Data Naturally Indexed (columns) Scalable Cons Poor for interconnected data

Document Databases Inspired by Lotus Notes Collection of Key value pair collections (called Documents)

Document Databases Data Model: Examples: A collection of documents A document is a key value collection Index-centric, lots of map-reduce Examples: CouchDB, MongoDB

Document Databases: Pros and Cons Simple, powerful data model Scalable Cons Poor for interconnected data Query model limited to keys and indexes Map reduce for larger queries

Graph Databases Data Model: Examples: Nodes and Relationships Neo4j, OrientDB, InfiniteGraph, AllegroGraph

Graph Databases: Pros and Cons Powerful data model, as general as RDBMS Connected data locally indexed Easy to query Cons Sharding ( lots of people working on this) Scales UP reasonably well Requires rewiring your brain

What are graphs good for? Recommendations Business intelligence Social computing Geospatial Systems management Web of things Genealogy Time series data Product catalogue Web analytics Scientific computing (especially bioinformatics) Indexing your slow RDBMS And much more!

What is a Graph?

What is a Graph? An abstract representation of a set of objects where some pairs are connected by links. Object (Vertex, Node) Link (Edge, Arc, Relationship)

Different Kinds of Graphs Undirected Graph Directed Graph Pseudo Graph Multi Graph Hyper Graph An undirected graph is one in which edges have no orientation. The edge (a, b) is identical to the edge (b, a). A directed graph or digraph is an ordered pair D = (V, A) A pseudo graph is a graph with loops A multi graph allows for multiple edges between nodes A hyper graph allows an edge to join more than two nodes

More Kinds of Graphs Weighted Graph Labeled Graph Property Graph A weighted graph has a number assigned to each edge A labeled graph has a label assigned to each node or edge A property graph has keys and values for each node or edge

What is a Graph Database? A database with an explicit graph structure Each node knows its adjacent nodes As the number of nodes increases, the cost of a local step (or hop) remains the same Plus an Index for lookups

Relational Databases

Graph Databases

Neo4j Tips Each entity table is represented by a label on nodes Each row in a entity table is a node Columns on those tables become node properties. Join tables are transformed into relationships, columns on those tables become relationship properties

Node in Neo4j

Relationships in Neo4j Relationships between nodes are a key part of Neo4j.

Relationships in Neo4j

Twitter and relationships

Properties Both nodes and relationships can have properties. Properties are key-value pairs where the key is a string. Property values can be either a primitive or an array of one primitive type. For example String, int and int[] values are valid for properties.

Properties

Paths in Neo4j A path is one or more nodes with connecting relationships, typically retrieved as a query or traversal result.

Starting and Stopping

Creating a small graph

Print the data

Remove the data

The Matrix Graph Database