SlideShare a Scribd company logo
Introduction to MongoDB
By:
Hemant Sharma
What is MongoDB?
•An open source cross-platform document
oriented database system.
•Classified as a NoSQL database.
•Use JSON like documents with
dynamic schemas to store data.
•Works on concept of collection and
document.
Basic Terminology
RDBMS MongoDB
Database Database
Table Collection
Tuple/Row Document
Column Field
Table Join Embedded Document
Primary Key Primary Key ( Default key _id provided by
MongoDB)
MongoDB Terminology
MongoDB Terminology
• Database : A physical container for collections. Each database gets its
own set of files on the file system. A single MongoDB server typically
has multiple databases.
•.Collection : A group of MongoDB documents. Exists within a single
database. Typically, all documents in a collection are of similar or
related purpose.
•Document : A document is a set of key-value pairs. Documents have
dynamic schema. Dynamic schema means that documents in the same
collection do not need to have the same set of fields or structure, and
common fields in a collection's documents may hold different types of
data.
MongoDB Terminology
Document
Why to use MongoDB?
•Dynamic Schema: one collection holds different types of documents.
Number of fields, content and size of the document can be differ from
one document to another. Supports fluent polymorphism.
•Indexing of any attribute and Embedded document model provides
high performance and need for expensive joins.
•Automatic Scaling : Horizontal scaling is a part of core functionality..
•High Availability: MongoDB’s replication facility, called replica sets,
provide automatic failover and data Redundancy.
•Fast in place update.
•Conversion / mapping of application objects to database objects
not needed
Where to use MongoDB?
•Big Data
•Content Management and Delivery
•Mobile and Social Infrastructure
•User Data Management
•Data Hub
•Connect to MongoDB: We use mongo.exe shell. Issue following command
on Command Prompt:
•{path to parent directory}mongodbbinmongod.exe
•MongoDB is self-contained and does not have any other system
dependencies. So you can extract it to any directory.
•Data Directory : The default location for the MongoDB data directory
is C:datadb. Create this folder or you can also use an alternate path.
•Start MongoDB : To start database process, execute from command
prompt
{path to parent directory}mongodbbinmongod.exe
With alternate data directory option:
{path to parent directory}mongodbbinmongod.exe –dbpath d:data
The waiting for connections message in the console output indicates that the mongod.exe
process is running successfully.
How to install & Run MongoDB?
How to install & Run MongoDB?
•Download Link : http://www.mongodb.org/downloads
•MongoDB is self-contained and does not have any other system
dependencies. So you can extract it to any directory.
•Data Directory : The default location for the MongoDB data directory
is C:datadb. Create this folder or you can also use an alternate path.
•Start MongoDB : To start database process, execute from command
prompt
{path to parent directory}mongodbbinmongod.exe
With alternate data directory option:
{path to parent directory}mongodbbinmongod.exe –dbpath d:data
The waiting for connections message in the console output indicates that the
mongod.exe process is running successfully.

More Related Content

PPTX
Java- Nested Classes
PPT
Relational Databases
PDF
View & index in SQL
PDF
Pertemuan 3 Data Multi Dimensi
PDF
[PBO] Pertemuan 6 - Interface
PPTX
Trigger in mysql
PPT
Distributed Database System
PPT
Materi 7 c++ array
Java- Nested Classes
Relational Databases
View & index in SQL
Pertemuan 3 Data Multi Dimensi
[PBO] Pertemuan 6 - Interface
Trigger in mysql
Distributed Database System
Materi 7 c++ array

What's hot (20)

PDF
[PBO] Pertemuan 11 - GUI Java Desktop
PPTX
Sql joins
PPTX
Introduction to Relational Databases
PPTX
Model based testing using finite state machine(FSM)
PPTX
Context diagram
PPTX
Data Manipulation Language (DML).pptx
PPTX
Introduction of sql server indexing
PPTX
Difference between Homogeneous and Heterogeneous
PDF
Introduction to Data Warehouse
PPTX
old file system/traditional file sysytem
PDF
Domain specific Software Architecture
PPTX
Model data relasional (3)
PPTX
Advanced Dimensional Modelling
PPT
MySql slides (ppt)
PPTX
C# in depth
PPTX
Transaction Processing Concept
PDF
Topological Sorting (Portuguese)
PDF
Modul Data Warehouse
PPTX
Sql joins inner join self join outer joins
PDF
Xampp Untuk Pemula
[PBO] Pertemuan 11 - GUI Java Desktop
Sql joins
Introduction to Relational Databases
Model based testing using finite state machine(FSM)
Context diagram
Data Manipulation Language (DML).pptx
Introduction of sql server indexing
Difference between Homogeneous and Heterogeneous
Introduction to Data Warehouse
old file system/traditional file sysytem
Domain specific Software Architecture
Model data relasional (3)
Advanced Dimensional Modelling
MySql slides (ppt)
C# in depth
Transaction Processing Concept
Topological Sorting (Portuguese)
Modul Data Warehouse
Sql joins inner join self join outer joins
Xampp Untuk Pemula
Ad

Similar to Introduction to mongo db (20)

PPTX
Mongo db
PDF
Experiment no 1
PPTX
Introduction to MongoDB and CRUD operations
PDF
3-Mongodb and Mapreduce Programming.pdf
PPTX
Database Workshop Slides
PPTX
Top MongoDB interview Questions and Answers
PPTX
Mongo db
PDF
Mongo db dhruba
PDF
MongoDB - An Introduction
PDF
MongoDB Interview Questions PDF By ScholarHat
PPTX
MongoDB.pptx
PPTX
Basics of MongoDB
PDF
MongoDB Interview Questions PDF By ScholarHat
PDF
Mongodb By Vipin
PPTX
MongoDB Intro and Installation. pptx
PPTX
Mongo db nosql (1)
PPTX
mongodb11 (1) (1).pptx
PPTX
mongodb introduction11111111111111111111
PPTX
OVERVIEW OF MONGODB | CREATING USER IN MONGODB & ASSIGNING ROLES
PPTX
Everything You Need to Know About MongoDB Development.pptx
Mongo db
Experiment no 1
Introduction to MongoDB and CRUD operations
3-Mongodb and Mapreduce Programming.pdf
Database Workshop Slides
Top MongoDB interview Questions and Answers
Mongo db
Mongo db dhruba
MongoDB - An Introduction
MongoDB Interview Questions PDF By ScholarHat
MongoDB.pptx
Basics of MongoDB
MongoDB Interview Questions PDF By ScholarHat
Mongodb By Vipin
MongoDB Intro and Installation. pptx
Mongo db nosql (1)
mongodb11 (1) (1).pptx
mongodb introduction11111111111111111111
OVERVIEW OF MONGODB | CREATING USER IN MONGODB & ASSIGNING ROLES
Everything You Need to Know About MongoDB Development.pptx
Ad

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Cloud computing and distributed systems.
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Encapsulation theory and applications.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Big Data Technologies - Introduction.pptx
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Cloud computing and distributed systems.
Advanced methodologies resolving dimensionality complications for autism neur...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Machine learning based COVID-19 study performance prediction
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Mobile App Security Testing_ A Comprehensive Guide.pdf
Encapsulation theory and applications.pdf
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology

Introduction to mongo db

  • 2. What is MongoDB? •An open source cross-platform document oriented database system. •Classified as a NoSQL database. •Use JSON like documents with dynamic schemas to store data. •Works on concept of collection and document.
  • 3. Basic Terminology RDBMS MongoDB Database Database Table Collection Tuple/Row Document Column Field Table Join Embedded Document Primary Key Primary Key ( Default key _id provided by MongoDB) MongoDB Terminology
  • 4. MongoDB Terminology • Database : A physical container for collections. Each database gets its own set of files on the file system. A single MongoDB server typically has multiple databases. •.Collection : A group of MongoDB documents. Exists within a single database. Typically, all documents in a collection are of similar or related purpose. •Document : A document is a set of key-value pairs. Documents have dynamic schema. Dynamic schema means that documents in the same collection do not need to have the same set of fields or structure, and common fields in a collection's documents may hold different types of data.
  • 6. Why to use MongoDB? •Dynamic Schema: one collection holds different types of documents. Number of fields, content and size of the document can be differ from one document to another. Supports fluent polymorphism. •Indexing of any attribute and Embedded document model provides high performance and need for expensive joins. •Automatic Scaling : Horizontal scaling is a part of core functionality.. •High Availability: MongoDB’s replication facility, called replica sets, provide automatic failover and data Redundancy. •Fast in place update. •Conversion / mapping of application objects to database objects not needed
  • 7. Where to use MongoDB? •Big Data •Content Management and Delivery •Mobile and Social Infrastructure •User Data Management •Data Hub
  • 8. •Connect to MongoDB: We use mongo.exe shell. Issue following command on Command Prompt: •{path to parent directory}mongodbbinmongod.exe •MongoDB is self-contained and does not have any other system dependencies. So you can extract it to any directory. •Data Directory : The default location for the MongoDB data directory is C:datadb. Create this folder or you can also use an alternate path. •Start MongoDB : To start database process, execute from command prompt {path to parent directory}mongodbbinmongod.exe With alternate data directory option: {path to parent directory}mongodbbinmongod.exe –dbpath d:data The waiting for connections message in the console output indicates that the mongod.exe process is running successfully. How to install & Run MongoDB?
  • 9. How to install & Run MongoDB? •Download Link : http://www.mongodb.org/downloads •MongoDB is self-contained and does not have any other system dependencies. So you can extract it to any directory. •Data Directory : The default location for the MongoDB data directory is C:datadb. Create this folder or you can also use an alternate path. •Start MongoDB : To start database process, execute from command prompt {path to parent directory}mongodbbinmongod.exe With alternate data directory option: {path to parent directory}mongodbbinmongod.exe –dbpath d:data The waiting for connections message in the console output indicates that the mongod.exe process is running successfully.