10
MongoDB vs OrientDB Stefano Campese April 23, 2015 Stefano Campese MongoDB vs OrientDB April 23, 2015 1 / 10

MongoDB vs OrientDB

Embed Size (px)

Citation preview

Page 1: MongoDB vs OrientDB

MongoDB vs OrientDB

Stefano Campese

April 23, 2015

Stefano Campese MongoDB vs OrientDB April 23, 2015 1 / 10

Page 2: MongoDB vs OrientDB

Overview

1 Introduction

2 Choose the right Database

3 MongoDB VS OrientDB

4 Example

Stefano Campese MongoDB vs OrientDB April 23, 2015 2 / 10

Page 3: MongoDB vs OrientDB

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

Page 4: MongoDB vs OrientDB

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

Page 5: MongoDB vs OrientDB

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

Page 6: MongoDB vs OrientDB

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

Page 7: MongoDB vs OrientDB

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

Page 8: MongoDB vs OrientDB

Figure

Figure : OrientDB vertex example

Stefano Campese MongoDB vs OrientDB April 23, 2015 8 / 10

Page 9: MongoDB vs OrientDB

Figure

Figure : SQL to MongoDB schema

Stefano Campese MongoDB vs OrientDB April 23, 2015 9 / 10

Page 10: MongoDB vs OrientDB

End

Stefano Campese MongoDB vs OrientDB April 23, 2015 10 / 10