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