SlideShare a Scribd company logo
Mongodb
Mongodb introduction
 MongoDB, is the document oriented database the most popular NoSQL
database, is an open-source document-oriented database. The term ‘NoSQL’
means ‘non-relational’. It means that MongoDB isn’t based on the table-like
relational database structure but provides an altogether different mechanism
for storage and retrieval of data. This format of storage is called BSON (
similar to JSON format).
 Terminologies:
A MongoDB Database can be called as the container for all the collections.
 Collection is a bunch of MongoDB documents. It is similar to tables in RDBMS.
 Document is made of fields. It is similar to a tuple in RDBMS, but it has
dynamic schema here. Documents of the same collection need not have the
same set of fields
Overview
 SQL databases store data in tabular format. This data is stored in a predefined
data model which is not very much flexible for today’s real-world highly
growing applications. Modern applications are more networked, social and
interactive than ever. Applications are storing more and more data and are
accessing it at higher rates.
 Relational Database Management System(RDBMS) is not the correct choice
when it comes to handling big data by the virtue of their design since they are
not horizontally scalable. If the database runs on a single server, then it will
reach a scaling limit. NoSQL databases are more scalable and provide superior
performance. MongoDB is such a NoSQL database that scales by adding more
and more servers and increases productivity with its flexible document
model.
Features of MongoDB:
 Document Oriented: MongoDB stores the main subject in the minimal number
of documents and not by breaking it up into multiple relational structures like
RDBMS. For example, it stores all the information of a computer in a single
document called Computer and not in distinct relational structures like CPU,
RAM, Hard disk, etc.
 Indexing: Without indexing, a database would have to scan every document
of a collection to select those that match the query which would be
inefficient. So, for efficient searching Indexing is a must and MongoDB uses it
to process huge volumes of data in very less time.
 Scalability: MongoDB scales horizontally using sharding (partitioning data
across various servers). Data is partitioned into data chunks using the shard
key, and these data chunks are evenly distributed across shards that resides
across many physical servers. Also, new machines can be added to a running
database.
 Replication and High Availability: MongoDB increases the data availability
with multiple copies of data on different servers. By providing redundancy, it
protects the database from hardware failures. If one server goes down, the
data can be retrieved easily from other active servers which also had the
data stored on them.
 Aggregation: Aggregation operations process data records and return the
computed results. It is similar to the GROUPBY clause in SQL. A few
aggregation expressions are sum, avg, min, max, etc
Where do we use MongoDB?
 MongoDB is preferred over RDBMS in the following scenarios:
 Big Data: If you have huge amount of data to be stored in tables, think of
MongoDB before RDBMS databases. MongoDB has built in solution for
partitioning and sharding your database.
 Unstable Schema: Adding a new column in RDBMS is hard whereas MongoDB is
schema-less. Adding a new field, does not effect old documents and will be
very easy.
 Distributed data Since multiple copies of data are stored across different
servers, recovery of data is instant and safe even if there is a hardware
failure.
Language Support by MongoDB:
.
 MongoDB currently provides official driver support for all popular
programming languages like C, C++, C#, Java, Node.js, Perl, PHP, Python,
Ruby, Scala, Go and Erlang
Who’s using MongoDB?
 MongoDB has been adopted as backend software by a number of major
websites and services including EA, Cisco, Shutterfly, Adobe, Ericsson,
Craigslist, eBay, and Foursquare.

More Related Content

PPTX
MongoDB Roadmap
PDF
Evolution of MonogDB Sharding and Its Best Practices - Ranjith A - Mydbops Team
PDF
MongoDB sharded cluster. How to design your topology ?
PDF
Introduction to Sharding
DOCX
MongoDB Replication and Sharding
KEY
Sharding with MongoDB (Eliot Horowitz)
PDF
Sharding
PPTX
Tag based sharding presentation
MongoDB Roadmap
Evolution of MonogDB Sharding and Its Best Practices - Ranjith A - Mydbops Team
MongoDB sharded cluster. How to design your topology ?
Introduction to Sharding
MongoDB Replication and Sharding
Sharding with MongoDB (Eliot Horowitz)
Sharding
Tag based sharding presentation

What's hot (20)

PPTX
MongoDB Auto-Sharding at Mongo Seattle
PDF
MongoDB Basics Unileon
PPTX
2014 05-07-fr - add dev series - session 6 - deploying your application-2
PPT
NoSQL Analytics: JSON Data Analysis and Acceleration in MongoDB World
ODP
MongoDB Concepts
PPTX
Introduction to Sharding
PPTX
MongoDB at Scale
PPTX
MongoDB basics & Introduction
PPTX
Scaling with MongoDB
KEY
Mongodb sharding
DOCX
MongoDB DOC v1.5
PPTX
Sharding Methods for MongoDB
PPTX
MongoDB for Beginners
PPTX
PDF
Mongo db basics
PDF
Mongo db basics
PPTX
MongoDB : Scaling, Security & Performance
PDF
Mongodb - Scaling write performance
PPTX
Mongo db
PPTX
MongoDB San Francisco 2013: Basic Sharding in MongoDB presented by Brandon Bl...
MongoDB Auto-Sharding at Mongo Seattle
MongoDB Basics Unileon
2014 05-07-fr - add dev series - session 6 - deploying your application-2
NoSQL Analytics: JSON Data Analysis and Acceleration in MongoDB World
MongoDB Concepts
Introduction to Sharding
MongoDB at Scale
MongoDB basics & Introduction
Scaling with MongoDB
Mongodb sharding
MongoDB DOC v1.5
Sharding Methods for MongoDB
MongoDB for Beginners
Mongo db basics
Mongo db basics
MongoDB : Scaling, Security & Performance
Mongodb - Scaling write performance
Mongo db
MongoDB San Francisco 2013: Basic Sharding in MongoDB presented by Brandon Bl...
Ad

Similar to Mongodb (20)

PPTX
Everything You Need to Know About MongoDB Development.pptx
PDF
Mongo db dhruba
PDF
Introduction to MongoDB How is it Different from RDBMS
PPTX
nosql [Autosaved].pptx
PDF
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
PPTX
DSA _ASSIGNMENT_1(MONGODB VS RDBMS).pptx
PPTX
MongoDB.pptx
PPTX
Unit 3 MongDB
PDF
A Study on Mongodb Database.pdf
PDF
A Study on Mongodb Database
PDF
MongoDB eBook a complete guide to beginners
PPTX
mongodb11 (1) (1).pptx
PPTX
Mongo db
PPTX
Top MongoDB interview Questions and Answers
PDF
Performance analysis of MongoDB and HBase
PPTX
Kalp Corporate MongoDB Tutorials
PDF
MongoDB Lab Manual (1).pdf used in data science
PPTX
Elasticsearch vs MongoDB comparison
Everything You Need to Know About MongoDB Development.pptx
Mongo db dhruba
Introduction to MongoDB How is it Different from RDBMS
nosql [Autosaved].pptx
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
DSA _ASSIGNMENT_1(MONGODB VS RDBMS).pptx
MongoDB.pptx
Unit 3 MongDB
A Study on Mongodb Database.pdf
A Study on Mongodb Database
MongoDB eBook a complete guide to beginners
mongodb11 (1) (1).pptx
Mongo db
Top MongoDB interview Questions and Answers
Performance analysis of MongoDB and HBase
Kalp Corporate MongoDB Tutorials
MongoDB Lab Manual (1).pdf used in data science
Elasticsearch vs MongoDB comparison
Ad

Recently uploaded (20)

PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
PPT on Performance Review to get promotions
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
Welding lecture in detail for understanding
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
UNIT 4 Total Quality Management .pptx
bas. eng. economics group 4 presentation 1.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Foundation to blockchain - A guide to Blockchain Tech
PPT on Performance Review to get promotions
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Model Code of Practice - Construction Work - 21102022 .pdf
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
Welding lecture in detail for understanding
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...

Mongodb

  • 2. Mongodb introduction  MongoDB, is the document oriented database the most popular NoSQL database, is an open-source document-oriented database. The term ‘NoSQL’ means ‘non-relational’. It means that MongoDB isn’t based on the table-like relational database structure but provides an altogether different mechanism for storage and retrieval of data. This format of storage is called BSON ( similar to JSON format).  Terminologies: A MongoDB Database can be called as the container for all the collections.  Collection is a bunch of MongoDB documents. It is similar to tables in RDBMS.  Document is made of fields. It is similar to a tuple in RDBMS, but it has dynamic schema here. Documents of the same collection need not have the same set of fields
  • 3. Overview  SQL databases store data in tabular format. This data is stored in a predefined data model which is not very much flexible for today’s real-world highly growing applications. Modern applications are more networked, social and interactive than ever. Applications are storing more and more data and are accessing it at higher rates.  Relational Database Management System(RDBMS) is not the correct choice when it comes to handling big data by the virtue of their design since they are not horizontally scalable. If the database runs on a single server, then it will reach a scaling limit. NoSQL databases are more scalable and provide superior performance. MongoDB is such a NoSQL database that scales by adding more and more servers and increases productivity with its flexible document model.
  • 4. Features of MongoDB:  Document Oriented: MongoDB stores the main subject in the minimal number of documents and not by breaking it up into multiple relational structures like RDBMS. For example, it stores all the information of a computer in a single document called Computer and not in distinct relational structures like CPU, RAM, Hard disk, etc.  Indexing: Without indexing, a database would have to scan every document of a collection to select those that match the query which would be inefficient. So, for efficient searching Indexing is a must and MongoDB uses it to process huge volumes of data in very less time.  Scalability: MongoDB scales horizontally using sharding (partitioning data across various servers). Data is partitioned into data chunks using the shard key, and these data chunks are evenly distributed across shards that resides across many physical servers. Also, new machines can be added to a running database.
  • 5.  Replication and High Availability: MongoDB increases the data availability with multiple copies of data on different servers. By providing redundancy, it protects the database from hardware failures. If one server goes down, the data can be retrieved easily from other active servers which also had the data stored on them.  Aggregation: Aggregation operations process data records and return the computed results. It is similar to the GROUPBY clause in SQL. A few aggregation expressions are sum, avg, min, max, etc
  • 6. Where do we use MongoDB?  MongoDB is preferred over RDBMS in the following scenarios:  Big Data: If you have huge amount of data to be stored in tables, think of MongoDB before RDBMS databases. MongoDB has built in solution for partitioning and sharding your database.  Unstable Schema: Adding a new column in RDBMS is hard whereas MongoDB is schema-less. Adding a new field, does not effect old documents and will be very easy.  Distributed data Since multiple copies of data are stored across different servers, recovery of data is instant and safe even if there is a hardware failure.
  • 7. Language Support by MongoDB: .  MongoDB currently provides official driver support for all popular programming languages like C, C++, C#, Java, Node.js, Perl, PHP, Python, Ruby, Scala, Go and Erlang
  • 8. Who’s using MongoDB?  MongoDB has been adopted as backend software by a number of major websites and services including EA, Cisco, Shutterfly, Adobe, Ericsson, Craigslist, eBay, and Foursquare.