Академический Документы
Профессиональный Документы
Культура Документы
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
2/12/16
LOGO
OBJECTIVE
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.
13
LOGO
REPLICATION
INTRODUCTION CONT...
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
2/12/16
16
LOGO
IMPLEMENTATION OF PROPOSED
SYSTEM
Design Of MS SQL Server
17
LOGO
IMPLEMENTATION OF PROPOSED
SYSTEM CONT...
Performance Evaluation
2/12/16
18
LOGO
MS SQL SERVER
MONGODB
12
10
8
TIME (ms)
6
4
2
0
50
100
250
500
1000
2/12/16
19
10000
LOGO
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
MS SQL SERVER
MONGODB
10
TIME (ms)
6
50
100
250
500
DATA(NO OF RECORDS/DOCUMENTS)
2/12/16
21
1000
10000
LOGO
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
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
LOGO
results
26
LOGO
results
27
LOGO
results
2/12/16
28
LOGO
results
2/12/16
29
LOGO
results
2/12/16
30