You are on page 1of 30

LOGO

SURVEY OF NOSQL DATABASE


COMPARISION OF ITS
PERFORMANCE WITH RDBMS

By,
Satish.S
Saravanan.S
Khuthbudin.T
--- B.S.Abdur Rahman University

LOGO

Contents

2/12/16

INTRODUCTION

OBJECTIVE

INTRODUCTION TO MongoDB

PROPOSED SYSTEM

RESULTS

CONCLUSION
2

LOGO

INTRODUCTION

Application in NoSQL technology is rising rapidly among global players of


cloud and the enterprise because it offers data management capabilities
that meet the needs of modern application:
Better application development productivity through a more flexible
data model.
Greater ability to scale dynamically to support more users and data.
Improved performance to satisfy expectations of users wanting highly
responsive applications and to allow more complex processing of
data.
NoSQL is increasingly considered a valuable alternative to relational
databases.

2/12/16

LOGO

OBJECTIVE

The goal is to analyze the performance of Relational Database


Management System and NOSQL Database (MongoDB) for huge
amount of data by implementing a simple Student Mark Analysis
System(SMAS).

To compare the performance of MongoDB and MS SQL Server using


basic operations like insertion, deletion, retrieval and updation by
graphical analysis.

2/12/16

LOGO

TYPES OF NOSQL
There are 4 basic types of NoSQL databases:
Key-Value Store - It has a Big Hash Table of keys & values {ExampleRiak, Amazon S3 (Dynamo)}
Document-based Store- It stores documents made up of tagged elements.
{Example- MongoDB}
Column-based Store- Each storage block contains data from only one
column, {Example- HBase, Cassandra}
Graph-based-A network database that uses edges and nodes to represent
and store data. {Example- Neo4J}

2/12/16

LOGO

INTRODCUTION TO
MongoDB
MongoDB is a open source NOSQL DataBase development
New trend in database development and refer generally to database
without fixed schema.
Such database usually have lower transaction safety but a faster in
accessing data and scale better than relational DataBase.
MongoDB is a document database which provides
Document Database
Documents (objects) map nicely to programming language data
types.
Embedded documents and arrays reduce need for joins.
Dynamic schema makes polymorphism easier.
2/12/16

LOGO

INTRODCUTION TO
MongoDB CONT...

High Performance
Embedding makes reads and writes fast.
Indexes can include keys from embedded documents and arrays.
Optional streaming writes (no acknowledgments).
High Availability
Replicated servers with automatic master failover.
Easy Scalability
Automatic sharding distributes collection data across machines.
Eventually- consistent reads can be distributed over replicated
servers.

2/12/16

LOGO

Prominent features
The prominent features in MongoDB are:
1.SHARDING
2.REPLICATION

2/12/16

LOGO

SHARDING
INTRODUCTION
Sharding, or horizontal scaling, by contrast, divides the data set and
distributes the data over multiple servers, or shards.
Each shard is an independent database, and collectively, the shards
make up a single logical database.

2/12/16

LOGO

SHARDING
INTRODUCTION CONT...
MongoDB supports sharding through the configuration of a sharded
clusters.

2/12/16

10

LOGO

SHARDING
INTRODUCTION CONT...
Sharded cluster has the following components:
Shards store the data inorder to provide high availability and data
consistency. In a production sharded cluster, each shard is a replica set.
Query Routers, or mongos instances, interface with client applications
and direct operations to the appropriate shard or shards.
The query router processes and targets operations to shards and then
returns results to the clients.
A sharded cluster can contain more than one query router to divide the
client request load. A client sends requests to one query router. Most
sharded cluster have many query routers.
2/12/16

11

LOGO

SHARDING
INTRODUCTION CONT...
Config servers store the clusters metadata.

This data contains a mapping of the clusters data set to the shards.
The query router uses this metadata to target operations to specific
shards.
Production sharded clusters have exactly 3 config servers.
Data Partitioning
MongoDB distributes data, or shards, at the collection level. Sharding
partitions a collections data by the shard key.
Shard Keys
A shard key is either an indexed field or an indexed compound field that
exists in every document in the collection.

2/12/16

12

LOGO

REPLICATION
INTRODUCTION
Replication is the process of synchronizing data across multiple
servers.

Replication provides redundancy and increases data availability.


With multiple copies of data on different database servers, replication
protects a database from the loss of a single server.
REPLICATION IN MongoDB
A replica set is a group of mongodb instances that host the same data
set.
On mongodb the primary, receives all write operations.
All other instances, secondaries, apply operations from the primary so
that they have the same data set.
2/12/16

13

LOGO

REPLICATION
INTRODUCTION CONT...

If the primary is unavailable, the replica set will elect a secondary to be


primary. By default, clients read from the primary.
We may add an extra mongodb instance to a replica set as an arbiter.
Arbiters do not maintain a data set. Arbiters only exist to vote in
elections.
2/12/16

14

LOGO

REPLICATION
INTRODUCTION CONT...

Automatic Failover
When a primary does not communicate with the other members of the
replica set for more than 10 seconds, the replica set will attempt to
select another member to become the new primary.
The first secondary that receives a majority of the votes becomes
primary.
2/12/16

15

LOGO

Comparing both databases

2/12/16

16

LOGO

IMPLEMENTATION OF PROPOSED
SYSTEM
Design Of MS SQL Server

MS SQL Server is a Relational Database Management System


(RDBMS) that runs server providing Multi user access to number of
database. In MS SQL server database data are stored in form of
Tables.
Tables used to describe user interface conventions that facilitate
viewing, searching and changing information often using computerbased forms and reports.
Design and Implementation of MongoDB
This model describes dynamic user model. This dynamic user models
allow a more up to date representation of users.
MongoDB consist of collection and it contains documents for every data
stored.
2/12/16

17

LOGO

IMPLEMENTATION OF PROPOSED
SYSTEM CONT...
Performance Evaluation

The applications in MS SQL Database performance will be less due to


scalability, thus the system have chance to crash.
So the performance will be carried out of basic queries in MongoDB &
RDBMS operation like CURD will check system performance and
efficiency based on retrieval and response time.

2/12/16

18

LOGO

INSERTION OF STUDENT RECORDS


INSERTION OF STUDENT RECORDS
14

MS SQL SERVER

MONGODB

12
10
8

TIME (ms)
6
4
2
0

50

100

250

500

1000

DATA (NO OF RECORDS/DOCUMENT)

2/12/16

19

10000

LOGO

RETRIEVAL OF STUDENT RECORDS


RETRIVAL OF STUDENT RECORDS
0.35

MS SQL SERVER

0.3

MONGODB

0.25

TIME (ms)
0.2
0.15
0.1
0.05
0

50

100

250

500

1000

DATA (NO.OF.RECORDS/DOCUMENTS)
2/12/16

20

10000

LOGO

UPDATION OF STUDENT RECORDS


UPDATION OF STUDENT RECORDS
12

MS SQL SERVER

MONGODB

10

TIME (ms)
6

50

100

250

500

DATA(NO OF RECORDS/DOCUMENTS)

2/12/16

21

1000

10000

LOGO

DELETION OF STUDENT RECORDS


DELETION OF STUDENT RECORDS
0.8

MS SQL SERVER

MONGODB

0.7
0.6
0.5 (ms)
TIME
0.4
0.3
0.2
0.1
0

50

100

250

500

1000

DATA (NO OF RECORDS/DOCUMENTS))


2/12/16

22

10000

LOGO

CONCLUSION
By analyzing the above results in our study the performance of
MongoDB is better than MS SQL Server by implementing basic
database operations like insertion, updation, retrieval and deletion.
In most cases the performance of MongoDB is good enough than MS
SQL Server.
This makes MongoDB a good database for projects with simple data
access.
The further features of MongoDB like sharding and replication will be
the future work.

2/12/16

23

LOGO

REFERENCES
[1] On the Elasticity of NoSQL Databases over Cloud Management Platforms. Ioannis
Konstantinou, Evangelos Angelou, Christina Boumpouka, DimitriosTsoumakos, Nectarios
Koziris Computing Systems Laboratory, School of Electrical and Computer Engineering
National Technical University of Athens
[2] MongoDB The Definitive Guide, OReilly Book.Kristina Chodorow, Michael Dirolf.
[3].MapReduce: Simplified Data Processing on Large Clusters. Jeffrey Dean and Sanjay
Ghemawat, Google, Inc.
[4]. Aggregate Queries in NoSQL Cloud Data Stores. Plamen Nikolov, Department of
Sciences,Vrije Universiteit, Amsterdam, The Netherlands. IEEE e-Science 2011
Conference. Stockholm, Sweden. Dec 5-8, 2011.
[5]. Jamil Ahmed Itmazi And Miguel Gea Megias Survey : Comparison and evolution
studies of Learning Content Management systems for
eLearning-system.
[6]. Ajatus Software: The Future of Scalable Databases. October 2009.
[7]. Roenberg, M. J. (2001). E-learning: Strategies for delivering knowledge in the digital
age. New York McGraw-Hill
[8]. http://www.10gen.com/
[9]. http://en.wikipedia.org/wiki/MongoDB
[10].http://www.mongodb.org/display/Docs/FindandModify+command.
[11].http://www.mongodb.org/display/Docs/DataBase+Reference
2/12/16

24

LOGO

k You For This O


ANY QUERIES ???

LOGO

results

User interface of records insertion


2/12/16

26

LOGO

results

User interface of amount of records retrieved from DB


2/12/16

27

LOGO

results

User interface of amount of records updated

2/12/16

28

LOGO

results

User interface of amount of records deleted

2/12/16

29

LOGO

results

Each transaction log of MongoDB server

2/12/16

30

You might also like