Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Difference between Derby and MongoDB

  • Last Updated : 30 Jun, 2020

1. Derby :
Derby is a full-featured, open-source relational database management system (RDBMS) implemented in Java and as the name suggests it is developed by Apache Software Foundations. It is based on Java, JDBC and SQL standards. Derby is easy to install, deploy, and use. It is either embedded into a Java application or used as a database server.

2. MongoDB :
MongoDB is a cross-platform document-oriented and a non relational (i.e., NoSQL) database program. It is an open-source document database, that stores the data in the form of key-value pairs. MongoDB is developed by MongoDB Inc. and initially released on 11 February 2009. It is written in C++, Go, JavaScript, Python languages. MongoDB offers high speed, high availability, and high scalability.

Difference between Derby and MongoDB :

1It is developed by Apache Software Foundation in 1997.It is developed by MongoDB Inc. on 2009.
2It is written in Java language.It is written in C++ language.
3The primary database model for Derby is Relational DBMS.The primary database model for MongoDB is Document store.
4Server operating systems for Derby are Windows, macOs, Linux, Unix, BSD and z/OS.Server operating systems for MongoDB are Linux, OS X, Solaris and Windows.
5It has Java Stored Procedures for Server-side scripts.It has Javascript for Server-side scripts.
6It support Master-Slave Replication methods.It also support Master-Slave Replication methods.
7APIs and other access methods used by Derby is JDBC.APIs and other access methods used by MongoDB is proprietary protocol using JSON.
8It support only Java programming language.It support C, C#, C++, D, Delphi, Java, JavaScript, Lua, MatLab, Objective-C, Perl, PHP, PL/SQL, Python, R, Ruby, Scala, etc.
9It provide XML support.It do not provide XML support.
10It support fine grained access rights according to SQL-standard.It do not support access rights for user.
11It does not support any Partitioning methods.In MongoDB, partitioning can be done by Sharding.
12It does not supports Map Reduce method.It supports Map Reduce method.
13It provides Immediate Consistency method to ensure consistency in a distributed system.It provides both Eventual Consistency and Immediate Consistency methods to ensure consistency in a distributed system.
14It provides multi-document ACID transactions with snapshot isolationIt provides ACID transactions.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!