Upload
stefano-campese
View
1.922
Download
2
Embed Size (px)
Citation preview
MongoDB vs OrientDB
Stefano Campese
April 23, 2015
Stefano Campese MongoDB vs OrientDB April 23, 2015 1 / 10
Overview
1 Introduction
2 Choose the right Database
3 MongoDB VS OrientDB
4 Example
Stefano Campese MongoDB vs OrientDB April 23, 2015 2 / 10
MongoDB
Born in 2009, it is one of the best known and document databases used inthe world of its main features are:
C++ implementation language
Database model Document Store
NO-SQL and Non-relational database
ACID transaction less
Ad hoc query language
Aggregation
Unique Index
Stefano Campese MongoDB vs OrientDB April 23, 2015 3 / 10
OrientDB
Born in 2010, it is a hybrid between a database of documents to adatabase graphs.Its main features are:
Java implementation language
Database model Document Store - Graph DBMS
NO-SQL Database
Query language similar to SQL
ACID transaction
Multithread indexing
Trigger
Stefano Campese MongoDB vs OrientDB April 23, 2015 4 / 10
When use MongoDB
Why use MongoDB?
1 Large amounts of data
2 No transactions needs
3 No relations need
4 Agile development method
5 Scalability
6 Performance
Stefano Campese MongoDB vs OrientDB April 23, 2015 5 / 10
When use OrientDB
Why use OrientDB?
1 Large amounts of data
2 Transactions needs
3 Telations need
4 Agile development method
5 Scalability
6 Performance (JOINincluded)
7 Query language
8 Object class mapping
Stefano Campese MongoDB vs OrientDB April 23, 2015 6 / 10
MongoDB VS OrientDB
Relazioni
OrientDB: Relation whit pointer between JSON
MongoDB: Index write on file
Query Language
OrientDB: simil-SQL language
MongoDB: new dedicated language
Memory Management
OrientDB: PLOCAL technique
MongoDB: LOCAL technique
Indexing
OrientDB: three algorithms (SB-tree, Hash index ,Lucene)
MongoDB: one algorithm (B-tree)Stefano Campese MongoDB vs OrientDB April 23, 2015 7 / 10
Figure
Figure : OrientDB vertex example
Stefano Campese MongoDB vs OrientDB April 23, 2015 8 / 10
Figure
Figure : SQL to MongoDB schema
Stefano Campese MongoDB vs OrientDB April 23, 2015 9 / 10
End
Stefano Campese MongoDB vs OrientDB April 23, 2015 10 / 10