* Department of ECE 1
Introduction to
MongoDB
Presented by – Harsh Kumar
USN – 1RV21EC065
• What is MongoDB?
• History of MongoDB.
• Key features of MongoDB.
• Some real life Use cases of MongoDB.
• Data Models.
• CRUD operations in MongoDB.
RV College of
Engineering
Outline
Go, change the world
* Department of ECE 2
RV College of
Engineering
Go, change the world
* Department of ECE 3
What is MongoDB?
• It is a noSQL database management system.
• It supports high availability and fault tolerance and also support low – latency data retrieval.
• It provides a flexible, scalable, and high-performance solution for storing and managing data.
• It can handle large volumes of unstructured, semi-structured, or structured data.
RV College of
Engineering
Go, change the world
* Department of ECE 4
History of MongoDB
• It was First released in 2009 by the company 10gen , now know as MongoDB inc. by Dwight
Merriman , Eliot Horowitz and Kevin Ryan in response to the limitations of traditional databases.
• Different Versions of MongoDB along with their date of launch:
MongoDB 2.0 (September 2011)
MongoDB 3.0 (February 2015)
MongoDB 3.4 (November 2016)
MongoDB 4.0 (June 2018)
MongoDB 4.4 (July 2020)
MongoDB 7.0 (August 2023) – By far the last update ( currently in use )
RV College of
Engineering
Go, change the world
* Department of ECE 5
Key Features of MongoDB
• Flexible Schema - means that the documents in a collection can have varying
structures.
• MongoDB is document oriented.
• Better scalability.
• High Performance.
RV College of
Engineering
Go, change the world
* Department of ECE 6
Some Real life use cases of MongoDB
• Content Management System (CMS).
• Real Time Analytics.
• IOT.
• Mobile/Web App Backends.
• Utilized in E-Commerce platforms for product catalogs , order processing and to maintaining
user engagement analytics.
RV College of
Engineering
Go, change the world
* Department of ECE 7
Data Model
• MongoDB is Document oriented - It stores data in format called documents where a document
is a BJSON structure that consists key - value pairs. Each attribute in a mongoDB document is
seperated by commas. Each documents in the same collection can have different fields and
attributes and each documents represents a single entity.
• MongoDB uses BJSON like documents for data storage and interchange . BJSON supports
various datatypes such as string , numbers , arrays , nested documents , regular expression and
more.
RV College of
Engineering
Go, change the world
* Department of ECE 8
Data Model
RV College of
Engineering
Go, change the world
* Department of ECE 9
CRUD Operations in MongoDB
how to create a database in Mongosh :
RV College of
Engineering
Go, change the world
* Department of ECE 10
CRUD Operations in MongoDB
Insert Operation:
Note : When we insert Multiple document using insertMany() method it expects an array of documents as argument..
RV College of
Engineering
Go, change the world
* Department of ECE 11
CRUD Operations in MongoDB
Find Operation:
RV College of
Engineering
Go, change the world
* Department of ECE 12
CRUD Operations in MongoDB
Update Operation:
RV College of
Engineering
Go, change the world
* Department of ECE 13
CRUD Operations in MongoDB
Delete Operation:
Thank You
RV College of
Engineering
Go, change the world
* Department of ECE 14

mongoDB_Intro-1 gives us the introduction to mongoDb

  • 1.
    * Department ofECE 1 Introduction to MongoDB Presented by – Harsh Kumar USN – 1RV21EC065
  • 2.
    • What isMongoDB? • History of MongoDB. • Key features of MongoDB. • Some real life Use cases of MongoDB. • Data Models. • CRUD operations in MongoDB. RV College of Engineering Outline Go, change the world * Department of ECE 2
  • 3.
    RV College of Engineering Go,change the world * Department of ECE 3 What is MongoDB? • It is a noSQL database management system. • It supports high availability and fault tolerance and also support low – latency data retrieval. • It provides a flexible, scalable, and high-performance solution for storing and managing data. • It can handle large volumes of unstructured, semi-structured, or structured data.
  • 4.
    RV College of Engineering Go,change the world * Department of ECE 4 History of MongoDB • It was First released in 2009 by the company 10gen , now know as MongoDB inc. by Dwight Merriman , Eliot Horowitz and Kevin Ryan in response to the limitations of traditional databases. • Different Versions of MongoDB along with their date of launch: MongoDB 2.0 (September 2011) MongoDB 3.0 (February 2015) MongoDB 3.4 (November 2016) MongoDB 4.0 (June 2018) MongoDB 4.4 (July 2020) MongoDB 7.0 (August 2023) – By far the last update ( currently in use )
  • 5.
    RV College of Engineering Go,change the world * Department of ECE 5 Key Features of MongoDB • Flexible Schema - means that the documents in a collection can have varying structures. • MongoDB is document oriented. • Better scalability. • High Performance.
  • 6.
    RV College of Engineering Go,change the world * Department of ECE 6 Some Real life use cases of MongoDB • Content Management System (CMS). • Real Time Analytics. • IOT. • Mobile/Web App Backends. • Utilized in E-Commerce platforms for product catalogs , order processing and to maintaining user engagement analytics.
  • 7.
    RV College of Engineering Go,change the world * Department of ECE 7 Data Model • MongoDB is Document oriented - It stores data in format called documents where a document is a BJSON structure that consists key - value pairs. Each attribute in a mongoDB document is seperated by commas. Each documents in the same collection can have different fields and attributes and each documents represents a single entity. • MongoDB uses BJSON like documents for data storage and interchange . BJSON supports various datatypes such as string , numbers , arrays , nested documents , regular expression and more.
  • 8.
    RV College of Engineering Go,change the world * Department of ECE 8 Data Model
  • 9.
    RV College of Engineering Go,change the world * Department of ECE 9 CRUD Operations in MongoDB how to create a database in Mongosh :
  • 10.
    RV College of Engineering Go,change the world * Department of ECE 10 CRUD Operations in MongoDB Insert Operation: Note : When we insert Multiple document using insertMany() method it expects an array of documents as argument..
  • 11.
    RV College of Engineering Go,change the world * Department of ECE 11 CRUD Operations in MongoDB Find Operation:
  • 12.
    RV College of Engineering Go,change the world * Department of ECE 12 CRUD Operations in MongoDB Update Operation:
  • 13.
    RV College of Engineering Go,change the world * Department of ECE 13 CRUD Operations in MongoDB Delete Operation:
  • 14.
    Thank You RV Collegeof Engineering Go, change the world * Department of ECE 14