SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
MongoDB
Developed and managed by MongoDB.Inc
Aayush Chimaniya
Divergent Software Labs Pvt. Ltd. Indore
Topics
-What Is MongoDB
-Why Use MongoDB
-When To Use MongoDB
-How MongoDB is different from RDBMS
-How It Works
-How To Use MongoDB
-Pros & Cons Of MongoDB
What is MongoDB
• MongoDB is an open-source document-oriented database.
• It is designed to store a large scale of data.
• It also allows you to work with data very efficiently.
• It is categorized under the NoSQL (Not only SQL) database because
the storage and retrieval of data are not in the form of tables.
How it works ?
Why Use MongoDB?
How it works ?
• MongoDB is built on a scale-out architecture that has become popular
with developers of all kinds for developing scalable applications with
evolving data schemas.
• As a document database, MongoDB makes it easy for developers to
store structured or unstructured data.
• It uses a JSON-like format to store documents. This format directly
maps to native objects in most modern programming languages,
• It can also handle high volume and can scale both vertically or
horizontally to accommodate large data loads.
When To Use MongoDB?
How it works ?
• Storing large volumes of data without structure.
• NoSQL databases like are a good choice when your data is document-
centric and doesn’t fit well into the schema of a relational database,
How mongoDB is different from RDBMS
MongoDB. RDBMS.
It is a non-relational and document-oriented
database.
It is a relational database.
It is suitable for hierarchical data storage. It is not suitable for hierarchical data storage.
It has a dynamic schema. It has a predefined schema.
In terms of performance, it is much faster than
RDBMS.
In terms of performance, it is slower than
MongoDB.
How it works ?
• Now, we will see how actually thing happens behind the scene.
• As we know that MongoDB is a database server , and the data is
stored in these databases.
• Because of its NoSQL database, the data is stored in the collections
and documents. the database, collection, and documents are
related to each other as shown below:
• Collections just like the MYSQL database tables. You are allowed to create
multiple databases and multiple collections.
• Now inside of the collection we have Documents. These documents contain the
data we want to store in the database & a single collection can contain multiple
documents & schema-less means it is not necessary that one document is similar
to another.
• The documents are created using the fields. Fields are key-value pairs in the
documents, it is just like columns in the relation database. The value of the fields
can be of any BSON data types like double, string, boolean, etc.
• Here, BSON stands for Binary representation of JSON documents.
• Or we can Say the MongoDB server converts the JSON data into a binary form
that is known as BSON
• Why BSON-:
• MongoDB uses BSON to offer powerful indexing and querying features
• JSON has a specific set of data types—string, boolean, number for numeric data
types, array, object, and null. Unlike JSON, BSON offers additional data types
such as bindata for binary data, decimal128 for numeric.
How it works ?
How To Use MongoDB
How it works ?
1. To Use Mongo DB With MongoShell
2. To Use Mongo DB With Spring Boot Application
How it works ?
1. To Use Mongo DB With MongoShell
How it works ?
To Use MongoDB With Spring Boot Application
MongoRepository -:
MongoRepository is an interface provided by Spring Data in the
package org.springframework.data.mongodb.repository. MongoRepository extends
the PagingAndSortingRepository and QueryByExampleExecutor interfaces that further extend
the CrudRepository interface. MongoRepository provides all the necessary methods which help
to create a CRUD application and it also supports the custom derived query methods.
Dependency Required-:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>
Pros & Cons Of MongoDB
How it works ?
• Pros of MongoDB :
• It is a schema-less NoSQL database. You need not to design the schema of the database when you
are working with MongoDB.
• It does not support join operation.
• It provides great flexibility to the fields in the documents.
• It contains heterogeneous data.
• It provides high performance, availability, scalability.
• It is a document oriented database and the data is stored in BSON documents.
• Cons of MongoDB :
• It uses high memory for data storage.
• It doesn’t support mapping between data.
• You are not allowed to store more than 16MB data in the documents.
• The nesting of data in BSON is also limited you are not allowed to nest data more than 100 levels.

More Related Content

PPTX
Introduction to MongoDB.pptx
PPTX
Kalp Corporate MongoDB Tutorials
PPTX
MongoDB presentation
PDF
3-Mongodb and Mapreduce Programming.pdf
PDF
Introduction to MongoDB Basics from SQL to NoSQL
PDF
MongoDB
PPTX
Introduction to MongoDB
PPTX
Mongo db
Introduction to MongoDB.pptx
Kalp Corporate MongoDB Tutorials
MongoDB presentation
3-Mongodb and Mapreduce Programming.pdf
Introduction to MongoDB Basics from SQL to NoSQL
MongoDB
Introduction to MongoDB
Mongo db

Similar to MongoDB.pptx (20)

PPTX
Mongo db nosql (1)
PPTX
PPTX
Everything You Need to Know About MongoDB Development.pptx
PPTX
Database Workshop Slides
PDF
Mongo db dhruba
PDF
MongoDB NoSQL database a deep dive -MyWhitePaper
PPTX
Mongodb Introduction
PDF
MongoDB Interview Questions PDF By ScholarHat
PPTX
Introduction to MongoDB a brief intro(1).pptx
PPTX
MongoDB introduction features -presentation - 2.pptx
PDF
Mongodb
PDF
Node Js, AngularJs and Express Js Tutorial
PDF
A Study on Mongodb Database
PDF
A Study on Mongodb Database.pdf
PPTX
Mongo db
PPTX
MongoDbPpt based on python installation.
PDF
MongoDB and crud operations with nosql_ppt.pdf
Mongo db nosql (1)
Everything You Need to Know About MongoDB Development.pptx
Database Workshop Slides
Mongo db dhruba
MongoDB NoSQL database a deep dive -MyWhitePaper
Mongodb Introduction
MongoDB Interview Questions PDF By ScholarHat
Introduction to MongoDB a brief intro(1).pptx
MongoDB introduction features -presentation - 2.pptx
Mongodb
Node Js, AngularJs and Express Js Tutorial
A Study on Mongodb Database
A Study on Mongodb Database.pdf
Mongo db
MongoDbPpt based on python installation.
MongoDB and crud operations with nosql_ppt.pdf
Ad

More from Aayush Chimaniya (6)

PPTX
Jasper Reports.pptx
PPTX
Microservices Api Gateway Eureka Server.pptx
PPT
Java SpringMVC SpringBOOT (Divergent).ppt
PPTX
Asynchronous Programming.pptx
PDF
SADBlood Bank.pdf
PDF
Electric Vehicle
Jasper Reports.pptx
Microservices Api Gateway Eureka Server.pptx
Java SpringMVC SpringBOOT (Divergent).ppt
Asynchronous Programming.pptx
SADBlood Bank.pdf
Electric Vehicle
Ad

Recently uploaded (20)

PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Digital Strategies for Manufacturing Companies
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
ai tools demonstartion for schools and inter college
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
top salesforce developer skills in 2025.pdf
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Transform Your Business with a Software ERP System
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Design an Analysis of Algorithms I-SECS-1021-03
Upgrade and Innovation Strategies for SAP ERP Customers
CHAPTER 2 - PM Management and IT Context
Design an Analysis of Algorithms II-SECS-1021-03
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Understanding Forklifts - TECH EHS Solution
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Digital Strategies for Manufacturing Companies
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
ai tools demonstartion for schools and inter college
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
top salesforce developer skills in 2025.pdf
Odoo Companies in India – Driving Business Transformation.pdf
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Transform Your Business with a Software ERP System
Wondershare Filmora 15 Crack With Activation Key [2025
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Odoo POS Development Services by CandidRoot Solutions
Design an Analysis of Algorithms I-SECS-1021-03

MongoDB.pptx

  • 1. MongoDB Developed and managed by MongoDB.Inc Aayush Chimaniya Divergent Software Labs Pvt. Ltd. Indore
  • 2. Topics -What Is MongoDB -Why Use MongoDB -When To Use MongoDB -How MongoDB is different from RDBMS -How It Works -How To Use MongoDB -Pros & Cons Of MongoDB
  • 3. What is MongoDB • MongoDB is an open-source document-oriented database. • It is designed to store a large scale of data. • It also allows you to work with data very efficiently. • It is categorized under the NoSQL (Not only SQL) database because the storage and retrieval of data are not in the form of tables. How it works ?
  • 4. Why Use MongoDB? How it works ? • MongoDB is built on a scale-out architecture that has become popular with developers of all kinds for developing scalable applications with evolving data schemas. • As a document database, MongoDB makes it easy for developers to store structured or unstructured data. • It uses a JSON-like format to store documents. This format directly maps to native objects in most modern programming languages, • It can also handle high volume and can scale both vertically or horizontally to accommodate large data loads.
  • 5. When To Use MongoDB? How it works ? • Storing large volumes of data without structure. • NoSQL databases like are a good choice when your data is document- centric and doesn’t fit well into the schema of a relational database,
  • 6. How mongoDB is different from RDBMS MongoDB. RDBMS. It is a non-relational and document-oriented database. It is a relational database. It is suitable for hierarchical data storage. It is not suitable for hierarchical data storage. It has a dynamic schema. It has a predefined schema. In terms of performance, it is much faster than RDBMS. In terms of performance, it is slower than MongoDB.
  • 7. How it works ? • Now, we will see how actually thing happens behind the scene. • As we know that MongoDB is a database server , and the data is stored in these databases. • Because of its NoSQL database, the data is stored in the collections and documents. the database, collection, and documents are related to each other as shown below:
  • 8. • Collections just like the MYSQL database tables. You are allowed to create multiple databases and multiple collections. • Now inside of the collection we have Documents. These documents contain the data we want to store in the database & a single collection can contain multiple documents & schema-less means it is not necessary that one document is similar to another. • The documents are created using the fields. Fields are key-value pairs in the documents, it is just like columns in the relation database. The value of the fields can be of any BSON data types like double, string, boolean, etc. • Here, BSON stands for Binary representation of JSON documents. • Or we can Say the MongoDB server converts the JSON data into a binary form that is known as BSON • Why BSON-: • MongoDB uses BSON to offer powerful indexing and querying features • JSON has a specific set of data types—string, boolean, number for numeric data types, array, object, and null. Unlike JSON, BSON offers additional data types such as bindata for binary data, decimal128 for numeric.
  • 10. How To Use MongoDB How it works ? 1. To Use Mongo DB With MongoShell 2. To Use Mongo DB With Spring Boot Application
  • 11. How it works ? 1. To Use Mongo DB With MongoShell
  • 13. To Use MongoDB With Spring Boot Application MongoRepository -: MongoRepository is an interface provided by Spring Data in the package org.springframework.data.mongodb.repository. MongoRepository extends the PagingAndSortingRepository and QueryByExampleExecutor interfaces that further extend the CrudRepository interface. MongoRepository provides all the necessary methods which help to create a CRUD application and it also supports the custom derived query methods. Dependency Required-: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId> </dependency>
  • 14. Pros & Cons Of MongoDB How it works ? • Pros of MongoDB : • It is a schema-less NoSQL database. You need not to design the schema of the database when you are working with MongoDB. • It does not support join operation. • It provides great flexibility to the fields in the documents. • It contains heterogeneous data. • It provides high performance, availability, scalability. • It is a document oriented database and the data is stored in BSON documents. • Cons of MongoDB : • It uses high memory for data storage. • It doesn’t support mapping between data. • You are not allowed to store more than 16MB data in the documents. • The nesting of data in BSON is also limited you are not allowed to nest data more than 100 levels.