SlideShare une entreprise Scribd logo
1  sur  25
Today 26th
April 2016
1
 Introduction
 Relational
 Non-Relational
 MongoDB
 MySQL
 STS Soft SC Benchmark
 Result and Analysis
 Conclusion
 References
2
3
While traditional relational databases are still used in a large scope of
applications, we have seen recently an explosion in the number of a new
data bases technologies developed in particular for Big Data serving.
Currently the main alternatives to RDMBS are NoSQL databases.
The primary focus of this thesis is to compare and evaluate a
NoSQL(MongoDB) and SQL(MySQL) databases in terms of response time
while performing write, read, and secondary read operations and answer
the question of whether one perform better than the other.
The NoSQL databases were created as a mean to offer high availability at
the price of losing the ACID (Atomic, Consistent, Isolated, Durable)
guarantees of the traditional databases in exchange with keeping a weaker
BASE (Basic Availability, Soft state, Eventual consistency) feature
4
The idea of the relational model presented by Codd in 1970,
where the relational model emphasized on the idea of
organizing data in the form of two-dimensional table,
"relationships"
SQL is a programming language for special purposes have
been designed to manage data in a relational database
management system.
5
 The NoSQL database is a whole new approach to manage
data for very large sets of distributed data.
 The data created today is so large and complex it is very
difficult to process in traditional RDBMS.
 NoSQL is widely used for exploring big data. Many Internet
giants, such as Amazon Dynamo, Google BigTable,
LinkedIn Voldemort, Twitter FlockDB and Facebook
Cassandra
6
7
MongoDB is an open source non-relational document
oriented (NoSQL) database management system
designed by MongoDB.
In MongoDB the objects are represented by documents
(with JSON like format). The documents with the same
characteristics/properties are grouped together in a
collection. Data in MongoDB has a flexible schema.
Unlike relational databases, MongoDB’s collections do
not enforce document structure.
8
 MySQL was included as a baseline to represent conventional
RDBMS performance. MySQL, the second most widely used
RDBMS in the world, has been covered heavily in prior
literature and will be left to the reader to pursue.
 MySQL is a commercial relational database management
system designed by Oracle. In order to capture the semantics
of the database, the data (objects) in SQL is represented by a
table (schema).
 The objects with the same number of properties, type and
format are grouped together in a table with a column for each
property, making it structured data. Each row in such a table
represents a different object.
9
MongoDB
Adobe: uses Mongodb to store petabytes of data.
 e-bay uses mongodb in the search suggestion.
Linkedln uses mongo as its backend DB
MySQL
Booking.com: one of Europe's online hotel travel
reservation agency
Telenor
Friendstar
Motorola
10
mysql mongodb
Tables and rows Collection of JSON
Column Field
Join operation Embedded document
Sql Mongodb quering language
Table and column required No define schema
Select*from user Db.user.find()
11
The benchmarks to collect performance results were run
using the STS Soft SC version 3.0.0.
STS Soft Database Benchmark is an open source tools
designed to stress test database indexing technologies with
large data flows.
The test engine of Database Benchmark performs three
tests:
Write
Read
Secondary Read
12
13
The benchmark results analyzed here reveals how
the two databases respond to write, read and
secondary read operations in terms of INSERT
and READ.
As mentioned earlier, the primary method of
analyzing the results is through a graph, the time
taken to complete an operation.
The graph is plotted against the varied number of
INSERTED records and READ the records.
14
15
Records MongoDB Write Time(s) MySQL Write Time(s)
 
100
0 94
 
50000
14 103
 
100000
18 105
 
200000
49 109
 
300000
77 119
 
1000000
259 166
 
2000000
508 227
 
3000000
674 278
 
4000000
922 316
 
5000000
1064 415
 
       
16
17
Records MongoDB Read Time(s) MySQL Read Time(s)
 
100
0 0
 
50000
0 1
 
100000
4 2
 
200000
10 4
 
300000
13 5
 
1000000
47 70
 
2000000
87 133
 
3000000
114 570
 
4000000
151 882
 
5000000
163 1050
 
       
18
Records MongoDB Secondary Read
Time(s)
MySQL Secondary Read Time(s)
 
100
0 0
 
50000
1 0
 
100000
4 2
 
200000
10 4
 
300000
12 5
 
1000000
46 53
 
2000000
88 114
 
3000000
114 614
 
4000000
140 839
 
5000000
170 1079
 
       
19
20
Records MongoDB Size in (MB) MySQL Size in (MB)
100
0 0
50000
13.5 3.4
100000
27.1 6.8
200000
54.1 13.6
300000
82.5 20.4
1000000
273.2 68.1
2000000
546.3 130.1
3000000
819.2 201.1
4000000
1092.4 272.1
5000000
1370.1 340.1
     
21
22
The experiments performed in the project tested and
compared how each of the three databases responded to
operation loads per time. The operations used in analyzing
the performance and scaling abilities were WRITE and
READ operations.
The times spent by each database to complete different
magnitude of the operations were recorded. The
measurements and charts presented in the experiment
revealed MongoDB’s READ performance advantage over
MySQL in both read and secondary operations due to its
simple and flexible schema, which made it cope faster with
queries.
23
 [1] Berg K., Seymour T., and Coel R. History of Databases. International
Journal of Management and Information Services, 17, 2013
 
 [2] IBM. Big data: Why it Matters to The Midmarket.
http://http://www.ibm.com/midmarket/us/en/article_BusinessAnalytics4_121
2.html.
 
 [3] Jatana N., Puri S., Ahuja M., Kathuria I., Gosain D., (2012), “A Survey
and Comparison of Relational and Non-Relational Database”, International
Journal of Engineering Re-search & Technology (IJERT), vol. 1, no. 6, pp.1-
5.
 [4] Beynon-Davies P. Database Systems. Palgrave Macmillan, 3rd
edition.
 
 [5] Cory Nance, Reenu Iype, Travis Losser and Gary Harmon. NOSQL
VS RDBMS - WHY THERE IS ROOM FOR BOTH. In Proceedings of the
Southern Association for Information Systems Conference, paper 27, SAIS,
2013
24
THANK YOU
25

Contenu connexe

Tendances

Introducing MongoDB Atlas
Introducing MongoDB AtlasIntroducing MongoDB Atlas
Introducing MongoDB AtlasMongoDB
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDBMongoDB
 
Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding Mydbops
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introductionPooyan Mehrparvar
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDBMike Dirolf
 
SQL vs MongoDB
SQL vs MongoDBSQL vs MongoDB
SQL vs MongoDBcalltutors
 
When to Use MongoDB
When to Use MongoDBWhen to Use MongoDB
When to Use MongoDBMongoDB
 
Introduction to NOSQL databases
Introduction to NOSQL databasesIntroduction to NOSQL databases
Introduction to NOSQL databasesAshwani Kumar
 
Sql server performance tuning
Sql server performance tuningSql server performance tuning
Sql server performance tuningngupt28
 
Introducing MongoDB Atlas
Introducing MongoDB AtlasIntroducing MongoDB Atlas
Introducing MongoDB AtlasMongoDB
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for BeginnersEnoch Joshua
 
An Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDBAn Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDBWilliam LaForest
 
Lessons for the optimizer from running the TPC-DS benchmark
Lessons for the optimizer from running the TPC-DS benchmarkLessons for the optimizer from running the TPC-DS benchmark
Lessons for the optimizer from running the TPC-DS benchmarkSergey Petrunya
 
MongoDB Atlas
MongoDB AtlasMongoDB Atlas
MongoDB AtlasMongoDB
 
Common MongoDB Use Cases
Common MongoDB Use CasesCommon MongoDB Use Cases
Common MongoDB Use CasesDATAVERSITY
 

Tendances (20)

Introducing MongoDB Atlas
Introducing MongoDB AtlasIntroducing MongoDB Atlas
Introducing MongoDB Atlas
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding Scaling MongoDB with Horizontal and Vertical Sharding
Scaling MongoDB with Horizontal and Vertical Sharding
 
NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introduction
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
SQL vs MongoDB
SQL vs MongoDBSQL vs MongoDB
SQL vs MongoDB
 
Mongo db intro.pptx
Mongo db intro.pptxMongo db intro.pptx
Mongo db intro.pptx
 
When to Use MongoDB
When to Use MongoDBWhen to Use MongoDB
When to Use MongoDB
 
Introduction to NOSQL databases
Introduction to NOSQL databasesIntroduction to NOSQL databases
Introduction to NOSQL databases
 
Sql server performance tuning
Sql server performance tuningSql server performance tuning
Sql server performance tuning
 
NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
Introducing MongoDB Atlas
Introducing MongoDB AtlasIntroducing MongoDB Atlas
Introducing MongoDB Atlas
 
Mongo DB
Mongo DBMongo DB
Mongo DB
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for Beginners
 
An Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDBAn Introduction to Big Data, NoSQL and MongoDB
An Introduction to Big Data, NoSQL and MongoDB
 
Lessons for the optimizer from running the TPC-DS benchmark
Lessons for the optimizer from running the TPC-DS benchmarkLessons for the optimizer from running the TPC-DS benchmark
Lessons for the optimizer from running the TPC-DS benchmark
 
MongoDB Atlas
MongoDB AtlasMongoDB Atlas
MongoDB Atlas
 
MongoDB
MongoDBMongoDB
MongoDB
 
Common MongoDB Use Cases
Common MongoDB Use CasesCommon MongoDB Use Cases
Common MongoDB Use Cases
 

Similaire à performance analysis between sql ans nosql

A Study on Mongodb Database.pdf
A Study on Mongodb Database.pdfA Study on Mongodb Database.pdf
A Study on Mongodb Database.pdfJessica Navarro
 
A Study on Mongodb Database
A Study on Mongodb DatabaseA Study on Mongodb Database
A Study on Mongodb DatabaseIJSRD
 
Analysis on NoSQL: MongoDB Tool
Analysis on NoSQL: MongoDB ToolAnalysis on NoSQL: MongoDB Tool
Analysis on NoSQL: MongoDB Toolijtsrd
 
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...ijcsity
 
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...ijcsity
 
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...ijcsity
 
MongoDB Lab Manual (1).pdf used in data science
MongoDB Lab Manual (1).pdf used in data scienceMongoDB Lab Manual (1).pdf used in data science
MongoDB Lab Manual (1).pdf used in data sciencebitragowthamkumar1
 
nosql [Autosaved].pptx
nosql [Autosaved].pptxnosql [Autosaved].pptx
nosql [Autosaved].pptxIndrani Sen
 
NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLRamakant Soni
 
NOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfNOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfajajkhan16
 
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...Darshan Gorasiya
 
Mongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMohan Rathour
 
A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.Navdeep Charan
 
Beginner's guide to Mongodb and NoSQL
Beginner's guide to Mongodb and NoSQL  Beginner's guide to Mongodb and NoSQL
Beginner's guide to Mongodb and NoSQL Maulin Shah
 
SQL vs NoSQL deep dive
SQL vs NoSQL deep diveSQL vs NoSQL deep dive
SQL vs NoSQL deep diveAhmed Shaaban
 
Introduction to MongoDB.pptx
Introduction to MongoDB.pptxIntroduction to MongoDB.pptx
Introduction to MongoDB.pptxSurya937648
 

Similaire à performance analysis between sql ans nosql (20)

A Study on Mongodb Database.pdf
A Study on Mongodb Database.pdfA Study on Mongodb Database.pdf
A Study on Mongodb Database.pdf
 
A Study on Mongodb Database
A Study on Mongodb DatabaseA Study on Mongodb Database
A Study on Mongodb Database
 
Analysis on NoSQL: MongoDB Tool
Analysis on NoSQL: MongoDB ToolAnalysis on NoSQL: MongoDB Tool
Analysis on NoSQL: MongoDB Tool
 
NoSql Databases
NoSql DatabasesNoSql Databases
NoSql Databases
 
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
 
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
 
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
 
MongoDB Lab Manual (1).pdf used in data science
MongoDB Lab Manual (1).pdf used in data scienceMongoDB Lab Manual (1).pdf used in data science
MongoDB Lab Manual (1).pdf used in data science
 
nosql [Autosaved].pptx
nosql [Autosaved].pptxnosql [Autosaved].pptx
nosql [Autosaved].pptx
 
NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQL
 
NOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfNOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdf
 
Unit 3 MongDB
Unit 3 MongDBUnit 3 MongDB
Unit 3 MongDB
 
Mongodb
MongodbMongodb
Mongodb
 
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...
Quantitative Performance Evaluation of Cloud-Based MySQL (Relational) Vs. Mon...
 
Mongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorialMongo Bb - NoSQL tutorial
Mongo Bb - NoSQL tutorial
 
A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.
 
Beginner's guide to Mongodb and NoSQL
Beginner's guide to Mongodb and NoSQL  Beginner's guide to Mongodb and NoSQL
Beginner's guide to Mongodb and NoSQL
 
Report 2.0.docx
Report 2.0.docxReport 2.0.docx
Report 2.0.docx
 
SQL vs NoSQL deep dive
SQL vs NoSQL deep diveSQL vs NoSQL deep dive
SQL vs NoSQL deep dive
 
Introduction to MongoDB.pptx
Introduction to MongoDB.pptxIntroduction to MongoDB.pptx
Introduction to MongoDB.pptx
 

Dernier

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 

Dernier (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

performance analysis between sql ans nosql

  • 2.  Introduction  Relational  Non-Relational  MongoDB  MySQL  STS Soft SC Benchmark  Result and Analysis  Conclusion  References 2
  • 3. 3 While traditional relational databases are still used in a large scope of applications, we have seen recently an explosion in the number of a new data bases technologies developed in particular for Big Data serving. Currently the main alternatives to RDMBS are NoSQL databases. The primary focus of this thesis is to compare and evaluate a NoSQL(MongoDB) and SQL(MySQL) databases in terms of response time while performing write, read, and secondary read operations and answer the question of whether one perform better than the other. The NoSQL databases were created as a mean to offer high availability at the price of losing the ACID (Atomic, Consistent, Isolated, Durable) guarantees of the traditional databases in exchange with keeping a weaker BASE (Basic Availability, Soft state, Eventual consistency) feature
  • 4. 4
  • 5. The idea of the relational model presented by Codd in 1970, where the relational model emphasized on the idea of organizing data in the form of two-dimensional table, "relationships" SQL is a programming language for special purposes have been designed to manage data in a relational database management system. 5
  • 6.  The NoSQL database is a whole new approach to manage data for very large sets of distributed data.  The data created today is so large and complex it is very difficult to process in traditional RDBMS.  NoSQL is widely used for exploring big data. Many Internet giants, such as Amazon Dynamo, Google BigTable, LinkedIn Voldemort, Twitter FlockDB and Facebook Cassandra 6
  • 7. 7
  • 8. MongoDB is an open source non-relational document oriented (NoSQL) database management system designed by MongoDB. In MongoDB the objects are represented by documents (with JSON like format). The documents with the same characteristics/properties are grouped together in a collection. Data in MongoDB has a flexible schema. Unlike relational databases, MongoDB’s collections do not enforce document structure. 8
  • 9.  MySQL was included as a baseline to represent conventional RDBMS performance. MySQL, the second most widely used RDBMS in the world, has been covered heavily in prior literature and will be left to the reader to pursue.  MySQL is a commercial relational database management system designed by Oracle. In order to capture the semantics of the database, the data (objects) in SQL is represented by a table (schema).  The objects with the same number of properties, type and format are grouped together in a table with a column for each property, making it structured data. Each row in such a table represents a different object. 9
  • 10. MongoDB Adobe: uses Mongodb to store petabytes of data.  e-bay uses mongodb in the search suggestion. Linkedln uses mongo as its backend DB MySQL Booking.com: one of Europe's online hotel travel reservation agency Telenor Friendstar Motorola 10
  • 11. mysql mongodb Tables and rows Collection of JSON Column Field Join operation Embedded document Sql Mongodb quering language Table and column required No define schema Select*from user Db.user.find() 11
  • 12. The benchmarks to collect performance results were run using the STS Soft SC version 3.0.0. STS Soft Database Benchmark is an open source tools designed to stress test database indexing technologies with large data flows. The test engine of Database Benchmark performs three tests: Write Read Secondary Read 12
  • 13. 13
  • 14. The benchmark results analyzed here reveals how the two databases respond to write, read and secondary read operations in terms of INSERT and READ. As mentioned earlier, the primary method of analyzing the results is through a graph, the time taken to complete an operation. The graph is plotted against the varied number of INSERTED records and READ the records. 14
  • 15. 15 Records MongoDB Write Time(s) MySQL Write Time(s)   100 0 94   50000 14 103   100000 18 105   200000 49 109   300000 77 119   1000000 259 166   2000000 508 227   3000000 674 278   4000000 922 316   5000000 1064 415          
  • 16. 16
  • 17. 17 Records MongoDB Read Time(s) MySQL Read Time(s)   100 0 0   50000 0 1   100000 4 2   200000 10 4   300000 13 5   1000000 47 70   2000000 87 133   3000000 114 570   4000000 151 882   5000000 163 1050          
  • 18. 18
  • 19. Records MongoDB Secondary Read Time(s) MySQL Secondary Read Time(s)   100 0 0   50000 1 0   100000 4 2   200000 10 4   300000 12 5   1000000 46 53   2000000 88 114   3000000 114 614   4000000 140 839   5000000 170 1079           19
  • 20. 20
  • 21. Records MongoDB Size in (MB) MySQL Size in (MB) 100 0 0 50000 13.5 3.4 100000 27.1 6.8 200000 54.1 13.6 300000 82.5 20.4 1000000 273.2 68.1 2000000 546.3 130.1 3000000 819.2 201.1 4000000 1092.4 272.1 5000000 1370.1 340.1       21
  • 22. 22
  • 23. The experiments performed in the project tested and compared how each of the three databases responded to operation loads per time. The operations used in analyzing the performance and scaling abilities were WRITE and READ operations. The times spent by each database to complete different magnitude of the operations were recorded. The measurements and charts presented in the experiment revealed MongoDB’s READ performance advantage over MySQL in both read and secondary operations due to its simple and flexible schema, which made it cope faster with queries. 23
  • 24.  [1] Berg K., Seymour T., and Coel R. History of Databases. International Journal of Management and Information Services, 17, 2013    [2] IBM. Big data: Why it Matters to The Midmarket. http://http://www.ibm.com/midmarket/us/en/article_BusinessAnalytics4_121 2.html.    [3] Jatana N., Puri S., Ahuja M., Kathuria I., Gosain D., (2012), “A Survey and Comparison of Relational and Non-Relational Database”, International Journal of Engineering Re-search & Technology (IJERT), vol. 1, no. 6, pp.1- 5.  [4] Beynon-Davies P. Database Systems. Palgrave Macmillan, 3rd edition.    [5] Cory Nance, Reenu Iype, Travis Losser and Gary Harmon. NOSQL VS RDBMS - WHY THERE IS ROOM FOR BOTH. In Proceedings of the Southern Association for Information Systems Conference, paper 27, SAIS, 2013 24