SlideShare una empresa de Scribd logo
1 de 28
Abdelmawla Mohamed (Abdo)
Senior Developer
2nd generation of Multi-Model NoSQL
Page
Relational database
/ Copyright ©2014 by Readify Limited2
› Data is presented to the user in the form of rows
and columns (a relation)
› Data can be manipulated through relational
operators in a tabular form
Page
Over Time
/ Copyright ©2014 by Readify Limited3
› Data start grown in size
› Data become heterogonous
› Structured, semi-structured, unstructured
Page
Big Data
/ Copyright ©2014 by Readify Limited4
Page
Relational database low
/ Copyright ©2014 by Readify Limited5
If the only tool you have is a relational database,
everything looks like a table.
Page
One tool doesn’t fit all
› Scalability issues
› Scale out
› Index intensive issues
› Join data
/ Copyright ©2014 by Readify Limited6
Page
Issues with joins
› the relationships are computed every time a
query is performed
› time complexity grows with data: O(log n)
› heavy runtime cost with large datasets
› Index lookup does not help, it could speeds up
searches but slows down inserts, updates,
deletes. Imagine on billions of records.
/ Copyright ©2014 by Readify Limited7
Page
NoSQL movement
/ Copyright ©2014 by Readify Limited8
› Not only SQL
› Simplicity of design (through different data
models)
› Being non-relational
› Simpler horizontal scaling
› Distributed
Page
NoSQL Models
› Document
› MongoDB, CouchDB, ….
› Key-value
› Cassandra, Redis, …
› Column
› Hbase, Cassandra, ..
› Graph
› Neo4j, ..
/ Copyright ©2014 by Readify Limited9
Page
But, all of them are one model
/ Copyright ©2014 by Readify Limited10
Page
NoSQL one model limitations
› Document model: no relationships, no schema
validation
› Graph model: no complex data, no schema
› key-value model: faster, but-key based access
only
› no transactions
/ Copyright ©2014 by Readify Limited11
Page
So What ?
/ Copyright ©2014 by Readify Limited12
Page
Multi-model database
/ Copyright ©2014 by Readify Limited13
Key-value
Graph Object-oriented
Document
Page / Copyright ©2014 by Readify Limited14
Page
Why OrientDB
/ Copyright ©2014 by Readify Limited15
› Native document store (schema-free, complex properties)
› Native graph store (index-free adjacent, fast relationships
traversal)
› Object oriented concepts (classes, inheritance, polymorphism)
› ACID Transactions (no lock applied but at commit time, the
MVCC applied)
› Rest / JSON interface
› Distributed (multi-master replication / sharding)
› SQL (extended)
Page
OrientDB data model
/ Copyright ©2014 by Readify Limited16
Page
Graph
/ Copyright ©2014 by Readify Limited17
G = (V, E)
Graph Vertices Edges
Graph
Page
Graph
/ Copyright ©2014 by Readify Limited18
drives
name: Abdo
Vertices can
have
properties
Vertices are
directed
AudiAbdo
license: A134
model: Q7
doors: 5Edges can
have
properties
Page
Abdo Lyon
An Edge connects only 2 vertices
Use multiple edges to represent 1-N
and N-M relationships
1-N and N-M Relationships
Graph
Page
Basic Concepts
› Class
› Used to represent type of data model
› Cluster
› Stores group of records within a class
/ Copyright ©2014 by Readify Limited20
Class Car
Cluster
USA_Car
Cluster
Germany_Car
Page
Vertices
› Record Identifier (RID)
› Each vertex has a unique self-assigned
identifier (RID)
› Format: #:<cluster-id>:<cluster-position>
› List of properties
› Edge’s RID (in & out)
/ Copyright ©2014 by Readify Limited21
Page
Edges
› Record identifier (RID)
› Each record has it’s own self-assigned unique
ID
› Composed of 2 parts
#:<cluster-id>:<cluster-position>
› in (RID of the incoming vertex)
› out (RID of the outgoing vertex)
/ Copyright ©2014 by Readify Limited22
Page
Relationships
/ Copyright ©2014 by Readify Limited23
› Doesn't make use of JOINS like RDBMS
› Physical links O(1)
› Relationship managed by storing the edge’s RID
in both vertices as “out” and “in”
› For 1-to-n relationship collections of rid are
used
Page
Relationships
/ Copyright ©2014 by Readify Limited24
drives
out: [#14:10]
name: Abdo
@class: Driver
#14:10
#13:20
out: [#13:20]
in: [#15:20]
license: A134
@class: Drives
#15:20
in: [#14:10]
model: Q7
doors: 5
name: BMW
@class: Car
Page
Demo
/ Copyright ©2014 by Readify Limited25
Page
API Interfaces
/ Copyright ©2014 by Readify Limited26
• Support for TinkerPop standard
for Graph DB: Gremlin language
and Blueprints API
• SQL + extensions for graphs
• JDBC driver to connect any BI tool
• HTTP/JSON support
• Drivers in Java, Node.js, Python,
PHP, .NET, Perl, C/C++ and more
Page
Getting Started for Free
/ Copyright ©2014 by Readify Limited27
OrientDB Community Edition is FREE for
any purpose (Apache 2 license)
http://orientdb.com/docs
Udemy Getting Started Training is Free
★★★★★
http://www.orientechnologies.com/getting-started
Page / Copyright ©2014 by Readify Limited28

Más contenido relacionado

La actualidad más candente

Barracuda Company Report
Barracuda Company ReportBarracuda Company Report
Barracuda Company Report
Ben Mehne
 
Behaviour And Model
Behaviour And ModelBehaviour And Model
Behaviour And Model
Yukei Wachi
 
MongoDB Introduction - Document Oriented Nosql Database
MongoDB Introduction - Document Oriented Nosql DatabaseMongoDB Introduction - Document Oriented Nosql Database
MongoDB Introduction - Document Oriented Nosql Database
Sudhir Patil
 

La actualidad más candente (20)

An Introduction to Druid
An Introduction to DruidAn Introduction to Druid
An Introduction to Druid
 
noSQL
noSQLnoSQL
noSQL
 
Barracuda Company Report
Barracuda Company ReportBarracuda Company Report
Barracuda Company Report
 
Storage dei dati con MongoDB
Storage dei dati con MongoDBStorage dei dati con MongoDB
Storage dei dati con MongoDB
 
Multi model-databases
Multi model-databasesMulti model-databases
Multi model-databases
 
MongoDB by Emroz sardar.
MongoDB by Emroz sardar.MongoDB by Emroz sardar.
MongoDB by Emroz sardar.
 
An introduction to MongoDB
An introduction to MongoDBAn introduction to MongoDB
An introduction to MongoDB
 
Displaying message on web page in Javascript
Displaying message on web page in JavascriptDisplaying message on web page in Javascript
Displaying message on web page in Javascript
 
Introduction to mongodb
Introduction to mongodbIntroduction to mongodb
Introduction to mongodb
 
JSDB - NoSQL Funcional e Minimalista - TDC 2016
JSDB - NoSQL Funcional e Minimalista - TDC 2016JSDB - NoSQL Funcional e Minimalista - TDC 2016
JSDB - NoSQL Funcional e Minimalista - TDC 2016
 
The secret sauce behind {binding} in xaml
The secret sauce behind {binding} in xamlThe secret sauce behind {binding} in xaml
The secret sauce behind {binding} in xaml
 
Mongo db
Mongo dbMongo db
Mongo db
 
Behaviour And Model
Behaviour And ModelBehaviour And Model
Behaviour And Model
 
あなたが創るセマンティックウェブ
あなたが創るセマンティックウェブあなたが創るセマンティックウェブ
あなたが創るセマンティックウェブ
 
NoSQL in the context of Social Web
NoSQL in the context of Social WebNoSQL in the context of Social Web
NoSQL in the context of Social Web
 
Jumpstart: Introduction to MongoDB
Jumpstart: Introduction to MongoDBJumpstart: Introduction to MongoDB
Jumpstart: Introduction to MongoDB
 
Mongodb open data day 2014
Mongodb open data day 2014Mongodb open data day 2014
Mongodb open data day 2014
 
Archives hub ead 2011_lifeshare
Archives hub ead 2011_lifeshareArchives hub ead 2011_lifeshare
Archives hub ead 2011_lifeshare
 
Mongodb vs mysql
Mongodb vs mysqlMongodb vs mysql
Mongodb vs mysql
 
MongoDB Introduction - Document Oriented Nosql Database
MongoDB Introduction - Document Oriented Nosql DatabaseMongoDB Introduction - Document Oriented Nosql Database
MongoDB Introduction - Document Oriented Nosql Database
 

Similar a Intoduction to OrientDB

A Taste Of InfoGrid
A Taste Of InfoGridA Taste Of InfoGrid
A Taste Of InfoGrid
InfoGrid.org
 
How to Place Data at the Center of Digital Transformation in BFSI
How to Place Data at the Center of Digital Transformation in BFSIHow to Place Data at the Center of Digital Transformation in BFSI
How to Place Data at the Center of Digital Transformation in BFSI
Denodo
 

Similar a Intoduction to OrientDB (20)

Hadoop Performance at LinkedIn
Hadoop Performance at LinkedInHadoop Performance at LinkedIn
Hadoop Performance at LinkedIn
 
Component Based DDS with C++11 and R2DDS
Component Based DDS with C++11 and R2DDSComponent Based DDS with C++11 and R2DDS
Component Based DDS with C++11 and R2DDS
 
Sydney 2015 Azure bootcamp PaaS presentation
Sydney 2015 Azure bootcamp PaaS presentationSydney 2015 Azure bootcamp PaaS presentation
Sydney 2015 Azure bootcamp PaaS presentation
 
Storage Options on Windows Azure
Storage Options on Windows AzureStorage Options on Windows Azure
Storage Options on Windows Azure
 
Expert Guide to Migrating Legacy Databases to Postgres
Expert Guide to Migrating Legacy Databases to PostgresExpert Guide to Migrating Legacy Databases to Postgres
Expert Guide to Migrating Legacy Databases to Postgres
 
An Introduction to Redis for .NET Developers.pdf
An Introduction to Redis for .NET Developers.pdfAn Introduction to Redis for .NET Developers.pdf
An Introduction to Redis for .NET Developers.pdf
 
An Expert Guide to Migrating Legacy Databases to PostgreSQL
An Expert Guide to Migrating Legacy Databases to PostgreSQLAn Expert Guide to Migrating Legacy Databases to PostgreSQL
An Expert Guide to Migrating Legacy Databases to PostgreSQL
 
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQLEin Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
 
Un guide complet pour la migration de bases de données héritées vers PostgreSQL
Un guide complet pour la migration de bases de données héritées vers PostgreSQLUn guide complet pour la migration de bases de données héritées vers PostgreSQL
Un guide complet pour la migration de bases de données héritées vers PostgreSQL
 
apidays Australia 2022 - Lessons from doing EdgeDevOps (GitOps) in the bush, ...
apidays Australia 2022 - Lessons from doing EdgeDevOps (GitOps) in the bush, ...apidays Australia 2022 - Lessons from doing EdgeDevOps (GitOps) in the bush, ...
apidays Australia 2022 - Lessons from doing EdgeDevOps (GitOps) in the bush, ...
 
Redis meetup
Redis meetupRedis meetup
Redis meetup
 
A Taste Of InfoGrid
A Taste Of InfoGridA Taste Of InfoGrid
A Taste Of InfoGrid
 
Webinar: Applying REST to Network Management – An Implementor’s View
Webinar: Applying REST to Network Management – An Implementor’s View Webinar: Applying REST to Network Management – An Implementor’s View
Webinar: Applying REST to Network Management – An Implementor’s View
 
Szabaduljon ki az Oracle szorításából
Szabaduljon ki az Oracle szorításábólSzabaduljon ki az Oracle szorításából
Szabaduljon ki az Oracle szorításából
 
Evolution of the DBA to Data Platform Administrator/Specialist
Evolution of the DBA to Data Platform Administrator/SpecialistEvolution of the DBA to Data Platform Administrator/Specialist
Evolution of the DBA to Data Platform Administrator/Specialist
 
Self Service Analytics and a Modern Data Architecture with Data Virtualizatio...
Self Service Analytics and a Modern Data Architecture with Data Virtualizatio...Self Service Analytics and a Modern Data Architecture with Data Virtualizatio...
Self Service Analytics and a Modern Data Architecture with Data Virtualizatio...
 
Key Methodologies for Migrating from Oracle to Postgres
Key Methodologies for Migrating from Oracle to PostgresKey Methodologies for Migrating from Oracle to Postgres
Key Methodologies for Migrating from Oracle to Postgres
 
How to Place Data at the Center of Digital Transformation in BFSI
How to Place Data at the Center of Digital Transformation in BFSIHow to Place Data at the Center of Digital Transformation in BFSI
How to Place Data at the Center of Digital Transformation in BFSI
 
New Approaches to Migrating from Oracle to Enterprise-Ready Postgres in the C...
New Approaches to Migrating from Oracle to Enterprise-Ready Postgres in the C...New Approaches to Migrating from Oracle to Enterprise-Ready Postgres in the C...
New Approaches to Migrating from Oracle to Enterprise-Ready Postgres in the C...
 
Break Free from Oracle
Break Free from OracleBreak Free from Oracle
Break Free from Oracle
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

Intoduction to OrientDB

  • 1. Abdelmawla Mohamed (Abdo) Senior Developer 2nd generation of Multi-Model NoSQL
  • 2. Page Relational database / Copyright ©2014 by Readify Limited2 › Data is presented to the user in the form of rows and columns (a relation) › Data can be manipulated through relational operators in a tabular form
  • 3. Page Over Time / Copyright ©2014 by Readify Limited3 › Data start grown in size › Data become heterogonous › Structured, semi-structured, unstructured
  • 4. Page Big Data / Copyright ©2014 by Readify Limited4
  • 5. Page Relational database low / Copyright ©2014 by Readify Limited5 If the only tool you have is a relational database, everything looks like a table.
  • 6. Page One tool doesn’t fit all › Scalability issues › Scale out › Index intensive issues › Join data / Copyright ©2014 by Readify Limited6
  • 7. Page Issues with joins › the relationships are computed every time a query is performed › time complexity grows with data: O(log n) › heavy runtime cost with large datasets › Index lookup does not help, it could speeds up searches but slows down inserts, updates, deletes. Imagine on billions of records. / Copyright ©2014 by Readify Limited7
  • 8. Page NoSQL movement / Copyright ©2014 by Readify Limited8 › Not only SQL › Simplicity of design (through different data models) › Being non-relational › Simpler horizontal scaling › Distributed
  • 9. Page NoSQL Models › Document › MongoDB, CouchDB, …. › Key-value › Cassandra, Redis, … › Column › Hbase, Cassandra, .. › Graph › Neo4j, .. / Copyright ©2014 by Readify Limited9
  • 10. Page But, all of them are one model / Copyright ©2014 by Readify Limited10
  • 11. Page NoSQL one model limitations › Document model: no relationships, no schema validation › Graph model: no complex data, no schema › key-value model: faster, but-key based access only › no transactions / Copyright ©2014 by Readify Limited11
  • 12. Page So What ? / Copyright ©2014 by Readify Limited12
  • 13. Page Multi-model database / Copyright ©2014 by Readify Limited13 Key-value Graph Object-oriented Document
  • 14. Page / Copyright ©2014 by Readify Limited14
  • 15. Page Why OrientDB / Copyright ©2014 by Readify Limited15 › Native document store (schema-free, complex properties) › Native graph store (index-free adjacent, fast relationships traversal) › Object oriented concepts (classes, inheritance, polymorphism) › ACID Transactions (no lock applied but at commit time, the MVCC applied) › Rest / JSON interface › Distributed (multi-master replication / sharding) › SQL (extended)
  • 16. Page OrientDB data model / Copyright ©2014 by Readify Limited16
  • 17. Page Graph / Copyright ©2014 by Readify Limited17 G = (V, E) Graph Vertices Edges Graph
  • 18. Page Graph / Copyright ©2014 by Readify Limited18 drives name: Abdo Vertices can have properties Vertices are directed AudiAbdo license: A134 model: Q7 doors: 5Edges can have properties
  • 19. Page Abdo Lyon An Edge connects only 2 vertices Use multiple edges to represent 1-N and N-M relationships 1-N and N-M Relationships Graph
  • 20. Page Basic Concepts › Class › Used to represent type of data model › Cluster › Stores group of records within a class / Copyright ©2014 by Readify Limited20 Class Car Cluster USA_Car Cluster Germany_Car
  • 21. Page Vertices › Record Identifier (RID) › Each vertex has a unique self-assigned identifier (RID) › Format: #:<cluster-id>:<cluster-position> › List of properties › Edge’s RID (in & out) / Copyright ©2014 by Readify Limited21
  • 22. Page Edges › Record identifier (RID) › Each record has it’s own self-assigned unique ID › Composed of 2 parts #:<cluster-id>:<cluster-position> › in (RID of the incoming vertex) › out (RID of the outgoing vertex) / Copyright ©2014 by Readify Limited22
  • 23. Page Relationships / Copyright ©2014 by Readify Limited23 › Doesn't make use of JOINS like RDBMS › Physical links O(1) › Relationship managed by storing the edge’s RID in both vertices as “out” and “in” › For 1-to-n relationship collections of rid are used
  • 24. Page Relationships / Copyright ©2014 by Readify Limited24 drives out: [#14:10] name: Abdo @class: Driver #14:10 #13:20 out: [#13:20] in: [#15:20] license: A134 @class: Drives #15:20 in: [#14:10] model: Q7 doors: 5 name: BMW @class: Car
  • 25. Page Demo / Copyright ©2014 by Readify Limited25
  • 26. Page API Interfaces / Copyright ©2014 by Readify Limited26 • Support for TinkerPop standard for Graph DB: Gremlin language and Blueprints API • SQL + extensions for graphs • JDBC driver to connect any BI tool • HTTP/JSON support • Drivers in Java, Node.js, Python, PHP, .NET, Perl, C/C++ and more
  • 27. Page Getting Started for Free / Copyright ©2014 by Readify Limited27 OrientDB Community Edition is FREE for any purpose (Apache 2 license) http://orientdb.com/docs Udemy Getting Started Training is Free ★★★★★ http://www.orientechnologies.com/getting-started
  • 28. Page / Copyright ©2014 by Readify Limited28