SlideShare a Scribd company logo
MONGODB VS RDBMS
IT5602
DATA SCIENCE AND ANALYSIS
DHARSHAN
2021506018
CONTENTS TO BE COVERED:
1.INTRODUCTION
2.RELATIONALAND NON-RELATIONAL DATABASES
3.MONGODB
4.MONGODB AND RDBMS
5.MONGODB VS RDBMS
INTRODUCTION
Two general types of data exists in the digital age: operational and analytical.
Operational data is used for everyday transactions such as recording
inventory, bank balances that have to be updated in real time.
On the other hand, analytical data is geared towards helping businesses
understand trends and patterns existing over a period of time
Most companies employ relational/non-relational databases mixture to handle
operational/analytical data effectively.
RELATIONALAND NON-RELATIONAL
DATABASES
RELATIONAL DATABASE
Relational database are used to
store data in tables.
A table has columns that describe
the data stored and rows
containing the actual data.
NON-RELATIONAL
DATABASE
NoSQL (Not Only SQL), or non-
relational database means any
kind of databases that do not use
structured data concept from
relational databases like tables,
fields and columns
Non-relational databases have
been designed with the cloud in
mind, making them great at
horizontal scaling.
TYPES:
1. Document Database: Stores information in flexible documents;
Example: MongoDB.
2. Column Store Database: Stores and arranges data concerning
columns for better analysis; Example: Apache Cassandra.
3. Key-Value Store Database: Stores records by means of simple keys
and values; Example: Redis.
4. Graph Database: A type of database that allows its users to see their
dataset as graph made up of nodes
WHY MIGHT YOU PREFER A NON-RELATIONAL DATABASE OVER A
RELATIONAL DATABASE?
 Non-relational databases are suitable for both operational and transactional data.
 They are more suitable for unstructured big data.
 Non-relational databases offer higher performance and availability.
 Flexible schema help non-relational databases store more data of varied types that can be
changed without major schema changes.
MONGODB
MongoDB is an open-source document-oriented database used for high volume data storage.
It falls under the classification of a NoSQL database. NoSQL tool means that it doesn’t utilize
the usual rows and columns. MongoDB uses BSON (document storage format) which is a
binary style of JSON documents.
FEATURES OF MONGODB
 Multiple Servers: It can run over multiple servers.
 Schema-less Database: It is a schema-less database.
 Indexing: Any field in the document can be indexed.
 Rich Object Model: It supports a rich object model.
 High scalability
 Distributed database
COLLECTION
Collection is a group of MongoDB
documents. It is the equivalent of an RDBMS
table. A collection exists within a single
database. Collections do not enforce a
schema. Documents within a collection can
have different fields. Typically, all documents
in a collection are of similar or related
purpose.
DOCUMENT
A document is a set of key-value
pairs. Documents have dynamic schema.
Dynamic schema means that documents
in the same collection do not need to
have the same set of fields or structure,
and common fields in a collection's
documents may hold different types of
data.
MONGODB AND RDBMS
Data Storage:
• Both RDBMS and MongoDB store data permanently for easy access and to be changed.
Query Language:
• As regards query language, they are both applicable in querying of data (SQL as a query
language for RDBMS and MondoDB Query Language that is used by MongoDB).
Indexing:
• Both RDBMS and MongoDB can be indexed because of increased retrieval speed
ACID Compliance:
• For transactional integrity, both systems can guarantee ACID (Atomicity, Consistency, Isolation,
Durability) properties.
Data Integrity:
• In keeping with this both have ways of maintaining the integrity of their data like the
constraints used in RDMBS and schema validation offered in MongoDB.
Scalability:
• Escalation of these two databases horizontally to handle higher amount of data as well
as load.
Security:
Security features are available in both system which includes authentication and
authorization mechanisms.
MONGODB VS RDBMS
Sr.
No.
Key RDBMS MongoDB
1
Concept RDBMS is a relational database
management system and works on
relational database.
MongoDB is a non-relational,
document oriented database
management system and works on
document based database.
2
Hiearchical Difficult to store hiearchical data. Have inbuilt support to store
hiearchical data.
3
Scalablity RDBMS is vertically scalable.
Performance increases with
increase of RAM.
MongoDB is horizontally scalable
as well. Its performance increases
with addition of processor.
4
Schema Schema need to be defined in
RDBMS before using a database.
Schema can be dynamically created
and accessed in MongoDB.
5
SQL Injection Vulnerable to SQL Injection attack. SQL injection is not possible.
6
Principle Follows ACID principle, Atomicity,
Consistency, Isolation, and
Durability.
Follows CAP theorem, Consistency,
Availability, and Partition tolerance.
7 Basis Database uses Row. Database uses Document.
8 Basis Database uses Column. Database uses Field.
9
Performance RDBMS is slower in processing large
hierachical data.
MongoDB is blazingly fast in
processing large hierachical data.
10
Joins RDBMS supports complex joins. MongoDB has no support for
complex joins.
11
JavaScript
Client
RDBMS do not provide JavaScript
based client to query database.
MongoDB provides Javascript based
client to query database.
12
Query
Language
RDBMS uses SQL to query database. MongoDB uses BSON to query
database.
MONGODB VS RDBMS
THANK
YOU

More Related Content

PPTX
PPTX
Unit-10.pptx
PDF
MongoDB Lab Manual (1).pdf used in data science
PPTX
Everything You Need to Know About MongoDB Development.pptx
PPTX
Unit 3 MongDB
PDF
the rising no sql technology
PDF
Streaming Analytics Unit 5 notes for engineers
PDF
MongoDB and crud operations with nosql_ppt.pdf
Unit-10.pptx
MongoDB Lab Manual (1).pdf used in data science
Everything You Need to Know About MongoDB Development.pptx
Unit 3 MongDB
the rising no sql technology
Streaming Analytics Unit 5 notes for engineers
MongoDB and crud operations with nosql_ppt.pdf

Similar to DSA _ASSIGNMENT_1(MONGODB VS RDBMS).pptx (20)

PDF
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
PDF
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
PDF
MONGODB VS MYSQL: A COMPARATIVE STUDY OF PERFORMANCE IN SUPER MARKET MANAGEME...
PDF
Introduction to MongoDB How is it Different from RDBMS
PPTX
WEB_DATABASE_chapter_4.pptx
DOCX
What are the major components of MongoDB and the major tools used in it.docx
PDF
Analysis on NoSQL: MongoDB Tool
PPTX
Introduction to databases (1).pptx
PPTX
CSCi226PPT1
PDF
All About Database v1.1
PPT
Mongo Bb - NoSQL tutorial
PPTX
Mongo db
PPTX
MongoDB.pptx
PDF
My sql vs mongo
PPTX
Mongodb vs mysql
PDF
IBM Data Analytics Module 2 Overview of data Repositories.
PDF
MongoDB Interview Questions PDF By ScholarHat
PDF
NOSQL- Presentation on NoSQL
PDF
NOSQL in big data is the not only structure langua.pdf
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...
Introduction to MongoDB How is it Different from RDBMS
WEB_DATABASE_chapter_4.pptx
What are the major components of MongoDB and the major tools used in it.docx
Analysis on NoSQL: MongoDB Tool
Introduction to databases (1).pptx
CSCi226PPT1
All About Database v1.1
Mongo Bb - NoSQL tutorial
Mongo db
MongoDB.pptx
My sql vs mongo
Mongodb vs mysql
IBM Data Analytics Module 2 Overview of data Repositories.
MongoDB Interview Questions PDF By ScholarHat
NOSQL- Presentation on NoSQL
NOSQL in big data is the not only structure langua.pdf
Ad

Recently uploaded (20)

PDF
M3M Infinum - Prime Business Hub in Noida
PDF
DG Listing Photo Book 1915 Cutlass Cove.pdf
PPTX
Classifying Objects and Events or Situations.pptx
PDF
Design of students hostel in a Nigerian university
PDF
Top 5 Gemba Walks Apps with eAuditor Audits & Inspections
PDF
Azizi Venice At Dubai South By Azizi Developments
PDF
Bhartiya City Nikoo Homes 6 & 7 - Iconic Luxury Apartments in the Heart of No...
PDF
Estate Management Services Bangalore .pdf
PDF
Product Handbook1 - LRT CITY CIBUBUR.pdf
PDF
Pelit Levent English Catalog Listing Turkey
PPTX
Celebrate Independence Day in Premium Apartments in Kerala
PDF
EVERGR1N HOUSE 4 at Jumeirah Garden City – Object 1
PDF
Binghatti Aquarise at Business Bay, Dubai – Binghatti Developers.pdf
PDF
Lesson 9 _ the role of plantrdetrtbtvrcterxwctvyrbutynibvrtcewrxctv and anim...
PDF
Real Estate Investment in Trichy – Why 2025 is the Best Time to Invest.pdf
PDF
2, 3, and 4 BHK Superior Apartment in Coimbatore
PDF
Taormina Village At Wadi Al Safa By Reportage Properties
PPTX
Startup Business Plan Neon Green and White Modern Minimal Presentation.pptx
PDF
BAYZ 102 at Business Bay, Dubai – Danube Properties
PDF
Isaş Tem Catalog - Gaziosmanpasa - Listing Turkey
M3M Infinum - Prime Business Hub in Noida
DG Listing Photo Book 1915 Cutlass Cove.pdf
Classifying Objects and Events or Situations.pptx
Design of students hostel in a Nigerian university
Top 5 Gemba Walks Apps with eAuditor Audits & Inspections
Azizi Venice At Dubai South By Azizi Developments
Bhartiya City Nikoo Homes 6 & 7 - Iconic Luxury Apartments in the Heart of No...
Estate Management Services Bangalore .pdf
Product Handbook1 - LRT CITY CIBUBUR.pdf
Pelit Levent English Catalog Listing Turkey
Celebrate Independence Day in Premium Apartments in Kerala
EVERGR1N HOUSE 4 at Jumeirah Garden City – Object 1
Binghatti Aquarise at Business Bay, Dubai – Binghatti Developers.pdf
Lesson 9 _ the role of plantrdetrtbtvrcterxwctvyrbutynibvrtcewrxctv and anim...
Real Estate Investment in Trichy – Why 2025 is the Best Time to Invest.pdf
2, 3, and 4 BHK Superior Apartment in Coimbatore
Taormina Village At Wadi Al Safa By Reportage Properties
Startup Business Plan Neon Green and White Modern Minimal Presentation.pptx
BAYZ 102 at Business Bay, Dubai – Danube Properties
Isaş Tem Catalog - Gaziosmanpasa - Listing Turkey
Ad

DSA _ASSIGNMENT_1(MONGODB VS RDBMS).pptx

  • 1. MONGODB VS RDBMS IT5602 DATA SCIENCE AND ANALYSIS DHARSHAN 2021506018
  • 2. CONTENTS TO BE COVERED: 1.INTRODUCTION 2.RELATIONALAND NON-RELATIONAL DATABASES 3.MONGODB 4.MONGODB AND RDBMS 5.MONGODB VS RDBMS
  • 3. INTRODUCTION Two general types of data exists in the digital age: operational and analytical. Operational data is used for everyday transactions such as recording inventory, bank balances that have to be updated in real time. On the other hand, analytical data is geared towards helping businesses understand trends and patterns existing over a period of time Most companies employ relational/non-relational databases mixture to handle operational/analytical data effectively.
  • 4. RELATIONALAND NON-RELATIONAL DATABASES RELATIONAL DATABASE Relational database are used to store data in tables. A table has columns that describe the data stored and rows containing the actual data. NON-RELATIONAL DATABASE NoSQL (Not Only SQL), or non- relational database means any kind of databases that do not use structured data concept from relational databases like tables, fields and columns Non-relational databases have been designed with the cloud in mind, making them great at horizontal scaling.
  • 5. TYPES: 1. Document Database: Stores information in flexible documents; Example: MongoDB. 2. Column Store Database: Stores and arranges data concerning columns for better analysis; Example: Apache Cassandra. 3. Key-Value Store Database: Stores records by means of simple keys and values; Example: Redis. 4. Graph Database: A type of database that allows its users to see their dataset as graph made up of nodes
  • 6. WHY MIGHT YOU PREFER A NON-RELATIONAL DATABASE OVER A RELATIONAL DATABASE?  Non-relational databases are suitable for both operational and transactional data.  They are more suitable for unstructured big data.  Non-relational databases offer higher performance and availability.  Flexible schema help non-relational databases store more data of varied types that can be changed without major schema changes.
  • 7. MONGODB MongoDB is an open-source document-oriented database used for high volume data storage. It falls under the classification of a NoSQL database. NoSQL tool means that it doesn’t utilize the usual rows and columns. MongoDB uses BSON (document storage format) which is a binary style of JSON documents. FEATURES OF MONGODB  Multiple Servers: It can run over multiple servers.  Schema-less Database: It is a schema-less database.  Indexing: Any field in the document can be indexed.  Rich Object Model: It supports a rich object model.  High scalability  Distributed database
  • 8. COLLECTION Collection is a group of MongoDB documents. It is the equivalent of an RDBMS table. A collection exists within a single database. Collections do not enforce a schema. Documents within a collection can have different fields. Typically, all documents in a collection are of similar or related purpose. DOCUMENT A document is a set of key-value pairs. Documents have dynamic schema. Dynamic schema means that documents in the same collection do not need to have the same set of fields or structure, and common fields in a collection's documents may hold different types of data.
  • 9. MONGODB AND RDBMS Data Storage: • Both RDBMS and MongoDB store data permanently for easy access and to be changed. Query Language: • As regards query language, they are both applicable in querying of data (SQL as a query language for RDBMS and MondoDB Query Language that is used by MongoDB). Indexing: • Both RDBMS and MongoDB can be indexed because of increased retrieval speed ACID Compliance: • For transactional integrity, both systems can guarantee ACID (Atomicity, Consistency, Isolation, Durability) properties.
  • 10. Data Integrity: • In keeping with this both have ways of maintaining the integrity of their data like the constraints used in RDMBS and schema validation offered in MongoDB. Scalability: • Escalation of these two databases horizontally to handle higher amount of data as well as load. Security: Security features are available in both system which includes authentication and authorization mechanisms.
  • 11. MONGODB VS RDBMS Sr. No. Key RDBMS MongoDB 1 Concept RDBMS is a relational database management system and works on relational database. MongoDB is a non-relational, document oriented database management system and works on document based database. 2 Hiearchical Difficult to store hiearchical data. Have inbuilt support to store hiearchical data. 3 Scalablity RDBMS is vertically scalable. Performance increases with increase of RAM. MongoDB is horizontally scalable as well. Its performance increases with addition of processor. 4 Schema Schema need to be defined in RDBMS before using a database. Schema can be dynamically created and accessed in MongoDB. 5 SQL Injection Vulnerable to SQL Injection attack. SQL injection is not possible. 6 Principle Follows ACID principle, Atomicity, Consistency, Isolation, and Durability. Follows CAP theorem, Consistency, Availability, and Partition tolerance.
  • 12. 7 Basis Database uses Row. Database uses Document. 8 Basis Database uses Column. Database uses Field. 9 Performance RDBMS is slower in processing large hierachical data. MongoDB is blazingly fast in processing large hierachical data. 10 Joins RDBMS supports complex joins. MongoDB has no support for complex joins. 11 JavaScript Client RDBMS do not provide JavaScript based client to query database. MongoDB provides Javascript based client to query database. 12 Query Language RDBMS uses SQL to query database. MongoDB uses BSON to query database.