SlideShare a Scribd company logo
Workshop
@
Ramnshee Infotech
By Jainul Musani
SESSION:02
2
Journy of MongoDB starts Now.
 What MongoDB ?
 Tools We are going to use
 How to work with MongoDB
 How to organize data in database,
 How to query
 How to write to database
 Data modeling
 Indexing
SESSION:02
Journy of MongoDB starts Now.
 Practice Exercises
 Assignments
 Quiz
SESSION:02
What is database - MongoDB?
 A database, meaning a structured way to store and
access data.
 Tables are used to store data in database in RDBMS
 Storing data in Row and Columns i.e. Library CArd, List
of employees etc.
 MongoDB is a NoSQL document database.
 No legacy approach of data.
SESSION:02
What is database - MongoDB?
 Records / information stored in document (json)
 Data stored in organized way but not in the form of R/C
 These documents are in turn stored in what we call
collections of documents.
 Documents together in a collection.
SESSION:02
Quick – QUIZ -1
 Why is MongoDB a NoSQL database?
 Because it does not utilize tables, rows and columns to
organize data
 Because it uses a structured way to store and access
data
SESSION:02
What is Document in MongoDB
 A document is a way to organize and store data as
 a set of field-value pairs.
{
<field> : <value>,
<field> : <value>,
name : ‘Laxami’,
title : ‘Team Lead’,
age : 26
}
SESSION:02
<field> – unique identifier for
some data point
<value> – data related to the
given identifier
What is Collection in MongoDB
 A collection is an organized store of documents

SESSION:02
{
name : ‘Laxami’,
title : ‘Team Lead’,
age : 26
}
{
name : ‘Ravi’,
title : ‘Developer’,
age : 37
}
{
name : ‘Surbhi’,
title : ‘Asst. HR’,
age : 29
}
Quick – QUIZ -2
 Select the statements that together help build the most
complete definition of the MongoDB database:
 The MongoDB database is an organized way to store and
access data.
 MongoDB database organizes documents in rows and
columns.
 MongoDB's database uses tables of related data.
 MongoDB is a NoSQL database that uses documents to
store data in an organized way.
SESSION:02
Quick – QUIZ -3
 In MongoDB how does a document relate to a collection?
 Collections consist of one or many documents.
 Collections are tables of documents and other
collections.
 Documents are made up of collections.
 Collections are documents that are organized in rows
and columns.
SESSION:02
Quick – QUIZ -4
 In a MongoDB Document what is the role of fields and
values?
 Values do not have to be attached to fields, and can be
stand alone data points.
 A field is a unique identifier for a specific datapoint.
 Each field has a value associated with it.
SESSION:02
What is MongoDB Atlas ?
 Atlas cloud database is fully managed database with
wide range of services
 In center its MongoDB use Atlas for data storage and
retrieval, analyze, export and build applications with
your data.
 Many different services and tools available in Atlas.
SESSION:02
What is MongoDB Atlas ?
 Atlas users can deploy CLUSTERS (group of servers to
store your data)
 This servers are configured in replica sets.
 Replica Set – few connected mongoDB instances store
the SAME DATA.
 An instance is a single machine local or in the cloud
running certain software or services.
 Benefit : something happened to a one instance of
dataset, than also data remain intact and remain
available from other replica set.
SESSION:02
What is MongoDB Atlas ?
 Drawback of replica set: every time you update a
document or collection will update the every replica
set and redundant copy of data. It will overhead and
slower the process.
 If you deploy your cluster, it will automatically be
configured as a replica set.
 No need any expert skill to manage cluster and replica
set for mongoDB.
SESSION:02
MongoDB Atlas Services
 Atlas manages the details of managing the cluster
creations.
 Simplifies the operational overhead of running and
maintain database deployment.
 It includes deployment over cloud provides and local
 With Atlas experiment and deployment of new mongoDB
tools are very easy.
SESSION:02
MongoDB Atlas Services
 Atlas services are paid, different charges to be paid for
different service packages.
 Atlas free tier – allow to deploy free cluster
 3 – server replica set
 512 MB storage
 Never expire
 Sub-set of other services i.e. Charts
 Use the MongoDB Admin Course to know how to deploy
/ configure and maintain locally
SESSION:02
Quick – QUIZ -5
 How is MongoDB Atlas related to MongoDB the
Database?
 Atlas is a MongoDB service that can work with any
database, but in this course it will be used with
MongoDB.
 Atlas has many tools and services within it that are
built specifically for the MongoDB Database.
 They both are MongoDB products.
 MongoDB Database has the same functionality as Atlas,
but without the friendly user interface.
SESSION:02

More Related Content

PPTX
Consistency in NoSQL
PPT
Fundamentals of Database system
PDF
Project report college information management system on Advanced Java
PPTX
Database System Architectures
PPTX
Database Administrator
PPTX
Centralised and distributed database
PDF
Users of dbms
PPT
data modeling and models
Consistency in NoSQL
Fundamentals of Database system
Project report college information management system on Advanced Java
Database System Architectures
Database Administrator
Centralised and distributed database
Users of dbms
data modeling and models

What's hot (20)

PPTX
Normalization
PPTX
Dbms normalization
PPTX
Data warehouse testing
PPTX
User, roles and privileges
PPTX
University management software
PPTX
Query processing and Query Optimization
PPT
02 Writing Executable Statments
PPTX
Database - Normalization
PPTX
Database administrator
PDF
Hospital Management System (2nd Task)
PDF
Unit 1: Introduction to DBMS Unit 1 Complete
PPTX
database language ppt.pptx
DOCX
Database development life cycle
PPSX
Functional dependency
PPTX
An Intro to NoSQL Databases
PPTX
physical and logical data independence
PDF
Database System Architecture
PPTX
T-SQL Overview
PDF
Advantages of Database Approach-converted.pdf
PPTX
Basics of MongoDB
Normalization
Dbms normalization
Data warehouse testing
User, roles and privileges
University management software
Query processing and Query Optimization
02 Writing Executable Statments
Database - Normalization
Database administrator
Hospital Management System (2nd Task)
Unit 1: Introduction to DBMS Unit 1 Complete
database language ppt.pptx
Database development life cycle
Functional dependency
An Intro to NoSQL Databases
physical and logical data independence
Database System Architecture
T-SQL Overview
Advantages of Database Approach-converted.pdf
Basics of MongoDB
Ad

Similar to MongoDB-SESSION02 (20)

PPTX
05201349_Unit_7_FSWD_ advanced learning.pptx
PPTX
05201349_Unit_7_FSWD_II(1) with advance.pptx
PPTX
05201349_Unit_7_FSWD_ advanced learning.pptx
PPTX
05201349_Unit_7_FSWD_II(1) with advance.pptx
PPTX
nosql [Autosaved].pptx
PDF
MongoDB Lab Manual (1).pdf used in data science
PDF
Analysis on NoSQL: MongoDB Tool
PDF
Introduction to MongoDB and its best practices
PPTX
MongoDB-SESION01
PPTX
Unit 3 MongDB
PDF
Mongo db dhruba
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...
PPTX
Mongo db
DOCX
MongoDB DOC v1.5
PDF
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
PPTX
How to learn MongoDB for beginner's
PPTX
Everything You Need to Know About MongoDB Development.pptx
PPTX
Introduction to MongoDB.pptx
05201349_Unit_7_FSWD_ advanced learning.pptx
05201349_Unit_7_FSWD_II(1) with advance.pptx
05201349_Unit_7_FSWD_ advanced learning.pptx
05201349_Unit_7_FSWD_II(1) with advance.pptx
nosql [Autosaved].pptx
MongoDB Lab Manual (1).pdf used in data science
Analysis on NoSQL: MongoDB Tool
Introduction to MongoDB and its best practices
MongoDB-SESION01
Unit 3 MongDB
Mongo db dhruba
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...
Mongo db
MongoDB DOC v1.5
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
How to learn MongoDB for beginner's
Everything You Need to Know About MongoDB Development.pptx
Introduction to MongoDB.pptx
Ad

More from Jainul Musani (20)

PDF
Core Java Interface Concepts for BCA Studetns
PDF
Java Abstract and Final Class for BCA students
PDF
Java Collection Framework for BCA Students
PDF
Simple Calculator using JavaFx a part of Advance Java
PDF
JavaFx Introduction, Basic JavaFx Architecture
PDF
ASP.NET 2010, WebServices Full Example for BCA Students
PDF
Palindrome Programme in PHP for BCA students
PDF
Leap Year Program in PHP for BCA students
PDF
"PHP and MySQL CRUD Operations for Student Management System"
PDF
Python: The Versatile Programming Language - Introduction
PPTX
Python a Versatile Programming Language - Introduction
PDF
React js t8 - inlinecss
PDF
React js t7 - forms-events
PDF
React js t6 -lifecycle
PDF
React js t5 - state
PDF
React js t4 - components
PDF
React js t3 - es6
PDF
React js t2 - jsx
PDF
React js t1 - introduction
PPTX
ExpressJs Session01
Core Java Interface Concepts for BCA Studetns
Java Abstract and Final Class for BCA students
Java Collection Framework for BCA Students
Simple Calculator using JavaFx a part of Advance Java
JavaFx Introduction, Basic JavaFx Architecture
ASP.NET 2010, WebServices Full Example for BCA Students
Palindrome Programme in PHP for BCA students
Leap Year Program in PHP for BCA students
"PHP and MySQL CRUD Operations for Student Management System"
Python: The Versatile Programming Language - Introduction
Python a Versatile Programming Language - Introduction
React js t8 - inlinecss
React js t7 - forms-events
React js t6 -lifecycle
React js t5 - state
React js t4 - components
React js t3 - es6
React js t2 - jsx
React js t1 - introduction
ExpressJs Session01

Recently uploaded (20)

PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Cell Structure & Organelles in detailed.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Trump Administration's workforce development strategy
PPTX
Pharma ospi slides which help in ospi learning
PDF
Yogi Goddess Pres Conference Studio Updates
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Classroom Observation Tools for Teachers
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
RMMM.pdf make it easy to upload and study
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Final Presentation General Medicine 03-08-2024.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
Cell Structure & Organelles in detailed.
Module 4: Burden of Disease Tutorial Slides S2 2025
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
human mycosis Human fungal infections are called human mycosis..pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
GDM (1) (1).pptx small presentation for students
Microbial diseases, their pathogenesis and prophylaxis
Trump Administration's workforce development strategy
Pharma ospi slides which help in ospi learning
Yogi Goddess Pres Conference Studio Updates
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Classroom Observation Tools for Teachers
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
RMMM.pdf make it easy to upload and study
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf

MongoDB-SESSION02

  • 2. Journy of MongoDB starts Now.  What MongoDB ?  Tools We are going to use  How to work with MongoDB  How to organize data in database,  How to query  How to write to database  Data modeling  Indexing SESSION:02
  • 3. Journy of MongoDB starts Now.  Practice Exercises  Assignments  Quiz SESSION:02
  • 4. What is database - MongoDB?  A database, meaning a structured way to store and access data.  Tables are used to store data in database in RDBMS  Storing data in Row and Columns i.e. Library CArd, List of employees etc.  MongoDB is a NoSQL document database.  No legacy approach of data. SESSION:02
  • 5. What is database - MongoDB?  Records / information stored in document (json)  Data stored in organized way but not in the form of R/C  These documents are in turn stored in what we call collections of documents.  Documents together in a collection. SESSION:02
  • 6. Quick – QUIZ -1  Why is MongoDB a NoSQL database?  Because it does not utilize tables, rows and columns to organize data  Because it uses a structured way to store and access data SESSION:02
  • 7. What is Document in MongoDB  A document is a way to organize and store data as  a set of field-value pairs. { <field> : <value>, <field> : <value>, name : ‘Laxami’, title : ‘Team Lead’, age : 26 } SESSION:02 <field> – unique identifier for some data point <value> – data related to the given identifier
  • 8. What is Collection in MongoDB  A collection is an organized store of documents  SESSION:02 { name : ‘Laxami’, title : ‘Team Lead’, age : 26 } { name : ‘Ravi’, title : ‘Developer’, age : 37 } { name : ‘Surbhi’, title : ‘Asst. HR’, age : 29 }
  • 9. Quick – QUIZ -2  Select the statements that together help build the most complete definition of the MongoDB database:  The MongoDB database is an organized way to store and access data.  MongoDB database organizes documents in rows and columns.  MongoDB's database uses tables of related data.  MongoDB is a NoSQL database that uses documents to store data in an organized way. SESSION:02
  • 10. Quick – QUIZ -3  In MongoDB how does a document relate to a collection?  Collections consist of one or many documents.  Collections are tables of documents and other collections.  Documents are made up of collections.  Collections are documents that are organized in rows and columns. SESSION:02
  • 11. Quick – QUIZ -4  In a MongoDB Document what is the role of fields and values?  Values do not have to be attached to fields, and can be stand alone data points.  A field is a unique identifier for a specific datapoint.  Each field has a value associated with it. SESSION:02
  • 12. What is MongoDB Atlas ?  Atlas cloud database is fully managed database with wide range of services  In center its MongoDB use Atlas for data storage and retrieval, analyze, export and build applications with your data.  Many different services and tools available in Atlas. SESSION:02
  • 13. What is MongoDB Atlas ?  Atlas users can deploy CLUSTERS (group of servers to store your data)  This servers are configured in replica sets.  Replica Set – few connected mongoDB instances store the SAME DATA.  An instance is a single machine local or in the cloud running certain software or services.  Benefit : something happened to a one instance of dataset, than also data remain intact and remain available from other replica set. SESSION:02
  • 14. What is MongoDB Atlas ?  Drawback of replica set: every time you update a document or collection will update the every replica set and redundant copy of data. It will overhead and slower the process.  If you deploy your cluster, it will automatically be configured as a replica set.  No need any expert skill to manage cluster and replica set for mongoDB. SESSION:02
  • 15. MongoDB Atlas Services  Atlas manages the details of managing the cluster creations.  Simplifies the operational overhead of running and maintain database deployment.  It includes deployment over cloud provides and local  With Atlas experiment and deployment of new mongoDB tools are very easy. SESSION:02
  • 16. MongoDB Atlas Services  Atlas services are paid, different charges to be paid for different service packages.  Atlas free tier – allow to deploy free cluster  3 – server replica set  512 MB storage  Never expire  Sub-set of other services i.e. Charts  Use the MongoDB Admin Course to know how to deploy / configure and maintain locally SESSION:02
  • 17. Quick – QUIZ -5  How is MongoDB Atlas related to MongoDB the Database?  Atlas is a MongoDB service that can work with any database, but in this course it will be used with MongoDB.  Atlas has many tools and services within it that are built specifically for the MongoDB Database.  They both are MongoDB products.  MongoDB Database has the same functionality as Atlas, but without the friendly user interface. SESSION:02