SlideShare a Scribd company logo
© SpringPeople Software Private Limited, All Rights Reserved.© SpringPeople Software Private Limited, All Rights Reserved.
Introduction to MongoDB
© SpringPeople Software Private Limited, All Rights Reserved.
What is MongoDB?
• MongoDB is a NoSQL store - NoSQL revolution
happened to solve the many issues faced with
storing web-scale data in relational databases
• It doesn't use SQL to store and retrieve data
• Widely adopted in web applications these days
• No clear winner and therefore difficult to choose
among alternatives
© SpringPeople Software Private Limited, All Rights Reserved.
Key Features - MongoDB
• The document data model
• Ad-hoc queries
• Secondary indexes
• Replication
• Speed & Durability
• Scaling
© SpringPeople Software Private Limited, All Rights Reserved.
MongoDB Concepts
Database
• A single MongoDB server can have many databases
Collections
• Collections are a group of Documents (sort of like RDBMS tables)
Documents
• A record in a MongoDB collection with a maximum size of 16MB
Fields
• One name-value pair in a document & is analogous to columns in a relational
database
© SpringPeople Software Private Limited, All Rights Reserved.
MongoDB – Hands-On
Use-Cases
• Blog posts and Comments
• E-commerce data
– Products and categories
– Users and their orders
– Reviews of products
• LinkedIn Profile Analysis
– A person and his/her education and experience
© SpringPeople Software Private Limited, All Rights Reserved.
Hands-On – CUD of CRUD
• LinkedIn case study – JSON document for Profile
• C of CRUD
– Insert documents
– Get, Change, Save
• U of CRUD
– Update a document
– Update multiple documents
• D of CRUD
– Remove
– Drop
© SpringPeople Software Private Limited, All Rights Reserved.
Hands-On – R of CRUD
• Find documents
– Find all documents - find
– Find a single document - findOne
– Specify a condition
– Specify multiple conditions
– Specifying conditions on sub-documents
© SpringPeople Software Private Limited, All Rights Reserved.
Indexing
• Understanding the need for indexing
• The explain
• Creating an index
• Creating an index with a unique field
• Indexes with multiple fields (compound indexes)
• Hashed Indexes
• Sparsed Indexes
• Removing an index
• Displaying all indexes
• Indexes that support covered queries
© SpringPeople Software Private Limited, All Rights Reserved.
Replication
Why Replication?
• Redundancy
• Fail-over
• Maintenance
• Load Balancing
Replication Setups
• Master/Slave Replication
• Replica Set Setup
• Arbiter
• Finding status via rs.status() on Primary
• Fail-over
© SpringPeople Software Private Limited, All Rights Reserved.
Replication – Oplogs and Heartbeat
• Oplog
– Capped Collections that is present in a database called
local on every replicating node
– Location: Database: local, Collection: oplog.rs
– Changing the oplog size (via mongod config)
• Heartbeat
– A 2-second ping with other members that helps the replica
set determine if a node has gone down
© SpringPeople Software Private Limited, All Rights Reserved.
Authentication
• Adding the admin user
• Adding individual users
• Starting the server with auth enabled
• Using authentication
• Replica sets and authentication
© SpringPeople Software Private Limited, All Rights Reserved.
Sharding
• Idea of sharding
• How is sharding different from replication?
• The different servers involved
– Shards
– Routers
– Config Servers
• Sharding without replication
• Sharding with replication
• Sharding with security enabled
• Bad shard keys
• Choosing ideal shard keys
© SpringPeople Software Private Limited, All Rights Reserved.
Backup, Repair, Import, Export
• Backing up the data directory
• Issue with backing up the data directory
• Using fsync and lock
• mongodump
• mongorestore
• Bsondump
• mongoimport
• mongoexport
© SpringPeople Software Private Limited, All Rights Reserved.
Monitoring
Admin UI
• Getting database information via the UI
• HTTP REST based interface
Monitoring
• serverStatus
• dbStats
• collStats
• mongostat
• mongotop
• mongosniff
© SpringPeople Software Private Limited, All Rights Reserved.
Leftovers
• Production Checklist
• Write concern in replica sets
• Full Text Search
• Map/Reduce
• GridFS
© SpringPeople Software Private Limited, All Rights Reserved.
Become a MongoDB Expert In 3
Days Flat
Attend the 3-Days “MongoDB Administration Workshop”
View Complete Details
© SpringPeople Software Private Limited, All Rights Reserved.
Who will benefit?
Application Developers who are currently evaluating the use of MongoDB in
their projects
View Complete Details
© SpringPeople Software Private Limited, All Rights Reserved.
For further info/assistance contact
training@springpeople.com
+91 80 65679700
www.springpeople.com
Certified Partner For
Ad

Recommended

Introduction To Perl - SpringPeople
Introduction To Perl - SpringPeople
SpringPeople
 
SpringPeople Introduction to HTML5 & CSS3
SpringPeople Introduction to HTML5 & CSS3
SpringPeople
 
SpringPeople Introduction to Mule ESB
SpringPeople Introduction to Mule ESB
SpringPeople
 
SpringPeople Introduction to JAVA Web Services
SpringPeople Introduction to JAVA Web Services
SpringPeople
 
SpringPeople Introduction to Spring Framework
SpringPeople Introduction to Spring Framework
SpringPeople
 
Velocity - Edge UG
Velocity - Edge UG
Phil Pursglove
 
Real World Rails Deployment
Real World Rails Deployment
Alan Hecht
 
The Need For Speed - NxtGen Cambridge
The Need For Speed - NxtGen Cambridge
Phil Pursglove
 
Spring Web flow. A little flow of happiness
Spring Web flow. A little flow of happiness
Strannik_2013
 
Spring Boot. Boot up your development. JEEConf 2015
Spring Boot. Boot up your development. JEEConf 2015
Strannik_2013
 
Scaling MySQL using Fabric
Scaling MySQL using Fabric
Karthik .P.R
 
Intro to SPA using JavaScript & ASP.NET
Intro to SPA using JavaScript & ASP.NET
Alan Hecht
 
Introduction to ASP.NET 5
Introduction to ASP.NET 5
mbaric
 
Building & Testing Scalable Rails Applications
Building & Testing Scalable Rails Applications
evilmike
 
Introdcution to Adobe CQ
Introdcution to Adobe CQ
Rest West
 
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Dylan Butler
 
SenchaCon 2016: LinkRest - Modern RESTful API Framework for Ext JS Apps - Rou...
SenchaCon 2016: LinkRest - Modern RESTful API Framework for Ext JS Apps - Rou...
Sencha
 
Elastic search adaptto2014
Elastic search adaptto2014
Vivek Sachdeva
 
Performance Eye for the SQL Guy
Performance Eye for the SQL Guy
Warwick Rudd
 
Docker y azure container service
Docker y azure container service
Fernando Mejía
 
The Need for Speed - EpiCenter 2010
The Need for Speed - EpiCenter 2010
Phil Pursglove
 
Building Ext JS Using HATEOAS - Jeff Stano
Building Ext JS Using HATEOAS - Jeff Stano
Sencha
 
How Container Schedulers and Software-based Storage will Change the Cloud
How Container Schedulers and Software-based Storage will Change the Cloud
David vonThenen
 
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
IDERA Software
 
Using ansible to manage cloud stack
Using ansible to manage cloud stack
Kiran Manohar Chavala
 
The RDBMS You Should Be Using
The RDBMS You Should Be Using
ColdFusionConference
 
ASP.Net 5 and C# 6
ASP.Net 5 and C# 6
Andy Butland
 
Capacity Planning
Capacity Planning
MongoDB
 
Webinar: Capacity Planning
Webinar: Capacity Planning
MongoDB
 
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Lucas Jellema
 

More Related Content

What's hot (19)

Spring Web flow. A little flow of happiness
Spring Web flow. A little flow of happiness
Strannik_2013
 
Spring Boot. Boot up your development. JEEConf 2015
Spring Boot. Boot up your development. JEEConf 2015
Strannik_2013
 
Scaling MySQL using Fabric
Scaling MySQL using Fabric
Karthik .P.R
 
Intro to SPA using JavaScript & ASP.NET
Intro to SPA using JavaScript & ASP.NET
Alan Hecht
 
Introduction to ASP.NET 5
Introduction to ASP.NET 5
mbaric
 
Building & Testing Scalable Rails Applications
Building & Testing Scalable Rails Applications
evilmike
 
Introdcution to Adobe CQ
Introdcution to Adobe CQ
Rest West
 
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Dylan Butler
 
SenchaCon 2016: LinkRest - Modern RESTful API Framework for Ext JS Apps - Rou...
SenchaCon 2016: LinkRest - Modern RESTful API Framework for Ext JS Apps - Rou...
Sencha
 
Elastic search adaptto2014
Elastic search adaptto2014
Vivek Sachdeva
 
Performance Eye for the SQL Guy
Performance Eye for the SQL Guy
Warwick Rudd
 
Docker y azure container service
Docker y azure container service
Fernando Mejía
 
The Need for Speed - EpiCenter 2010
The Need for Speed - EpiCenter 2010
Phil Pursglove
 
Building Ext JS Using HATEOAS - Jeff Stano
Building Ext JS Using HATEOAS - Jeff Stano
Sencha
 
How Container Schedulers and Software-based Storage will Change the Cloud
How Container Schedulers and Software-based Storage will Change the Cloud
David vonThenen
 
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
IDERA Software
 
Using ansible to manage cloud stack
Using ansible to manage cloud stack
Kiran Manohar Chavala
 
The RDBMS You Should Be Using
The RDBMS You Should Be Using
ColdFusionConference
 
ASP.Net 5 and C# 6
ASP.Net 5 and C# 6
Andy Butland
 
Spring Web flow. A little flow of happiness
Spring Web flow. A little flow of happiness
Strannik_2013
 
Spring Boot. Boot up your development. JEEConf 2015
Spring Boot. Boot up your development. JEEConf 2015
Strannik_2013
 
Scaling MySQL using Fabric
Scaling MySQL using Fabric
Karthik .P.R
 
Intro to SPA using JavaScript & ASP.NET
Intro to SPA using JavaScript & ASP.NET
Alan Hecht
 
Introduction to ASP.NET 5
Introduction to ASP.NET 5
mbaric
 
Building & Testing Scalable Rails Applications
Building & Testing Scalable Rails Applications
evilmike
 
Introdcution to Adobe CQ
Introdcution to Adobe CQ
Rest West
 
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Dylan Butler
 
SenchaCon 2016: LinkRest - Modern RESTful API Framework for Ext JS Apps - Rou...
SenchaCon 2016: LinkRest - Modern RESTful API Framework for Ext JS Apps - Rou...
Sencha
 
Elastic search adaptto2014
Elastic search adaptto2014
Vivek Sachdeva
 
Performance Eye for the SQL Guy
Performance Eye for the SQL Guy
Warwick Rudd
 
Docker y azure container service
Docker y azure container service
Fernando Mejía
 
The Need for Speed - EpiCenter 2010
The Need for Speed - EpiCenter 2010
Phil Pursglove
 
Building Ext JS Using HATEOAS - Jeff Stano
Building Ext JS Using HATEOAS - Jeff Stano
Sencha
 
How Container Schedulers and Software-based Storage will Change the Cloud
How Container Schedulers and Software-based Storage will Change the Cloud
David vonThenen
 
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
Geek Sync | How to Be the DBA When You Don't Have a DBA - Eric Cobb | IDERA
IDERA Software
 
ASP.Net 5 and C# 6
ASP.Net 5 and C# 6
Andy Butland
 

Similar to SpringPeople Introduction to MongoDB Administration (20)

Capacity Planning
Capacity Planning
MongoDB
 
Webinar: Capacity Planning
Webinar: Capacity Planning
MongoDB
 
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Lucas Jellema
 
MongoDB Capacity Planning
MongoDB Capacity Planning
Norberto Leite
 
Mongo DB at Community Engine
Mongo DB at Community Engine
Community Engine
 
MongoDB at community engine
MongoDB at community engine
mathraq
 
Big Data (NJ SQL Server User Group)
Big Data (NJ SQL Server User Group)
Don Demcsak
 
2013 CPM Conference, Nov 6th, NoSQL Capacity Planning
2013 CPM Conference, Nov 6th, NoSQL Capacity Planning
asya999
 
MySQL :What's New #GIDS16
MySQL :What's New #GIDS16
Sanjay Manwani
 
Scaling Databases On The Cloud
Scaling Databases On The Cloud
Imaginea
 
Scaing databases on the cloud
Scaing databases on the cloud
Imaginea
 
Operationalizing MongoDB at AOL
Operationalizing MongoDB at AOL
radiocats
 
MongoDC 2012: "Operationalizing" MongoDB@AOL
MongoDC 2012: "Operationalizing" MongoDB@AOL
MongoDB
 
Getting started with postgresql
Getting started with postgresql
botsplash.com
 
The Real Scoop on Migrating from Oracle Databases
The Real Scoop on Migrating from Oracle Databases
EDB
 
Scylla Summit 2016: Compose on Containing the Database
Scylla Summit 2016: Compose on Containing the Database
ScyllaDB
 
Apache Geode Meetup, London
Apache Geode Meetup, London
Apache Geode
 
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
Andrew Morgan
 
Using Spring with NoSQL databases (SpringOne China 2012)
Using Spring with NoSQL databases (SpringOne China 2012)
Chris Richardson
 
MongoDB SF Python
MongoDB SF Python
Mike Dirolf
 
Capacity Planning
Capacity Planning
MongoDB
 
Webinar: Capacity Planning
Webinar: Capacity Planning
MongoDB
 
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Lucas Jellema
 
MongoDB Capacity Planning
MongoDB Capacity Planning
Norberto Leite
 
Mongo DB at Community Engine
Mongo DB at Community Engine
Community Engine
 
MongoDB at community engine
MongoDB at community engine
mathraq
 
Big Data (NJ SQL Server User Group)
Big Data (NJ SQL Server User Group)
Don Demcsak
 
2013 CPM Conference, Nov 6th, NoSQL Capacity Planning
2013 CPM Conference, Nov 6th, NoSQL Capacity Planning
asya999
 
MySQL :What's New #GIDS16
MySQL :What's New #GIDS16
Sanjay Manwani
 
Scaling Databases On The Cloud
Scaling Databases On The Cloud
Imaginea
 
Scaing databases on the cloud
Scaing databases on the cloud
Imaginea
 
Operationalizing MongoDB at AOL
Operationalizing MongoDB at AOL
radiocats
 
MongoDC 2012: "Operationalizing" MongoDB@AOL
MongoDC 2012: "Operationalizing" MongoDB@AOL
MongoDB
 
Getting started with postgresql
Getting started with postgresql
botsplash.com
 
The Real Scoop on Migrating from Oracle Databases
The Real Scoop on Migrating from Oracle Databases
EDB
 
Scylla Summit 2016: Compose on Containing the Database
Scylla Summit 2016: Compose on Containing the Database
ScyllaDB
 
Apache Geode Meetup, London
Apache Geode Meetup, London
Apache Geode
 
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
Andrew Morgan
 
Using Spring with NoSQL databases (SpringOne China 2012)
Using Spring with NoSQL databases (SpringOne China 2012)
Chris Richardson
 
MongoDB SF Python
MongoDB SF Python
Mike Dirolf
 
Ad

More from SpringPeople (20)

Growth hacking tips and tricks that you can try
Growth hacking tips and tricks that you can try
SpringPeople
 
Top Big data Analytics tools: Emerging trends and Best practices
Top Big data Analytics tools: Emerging trends and Best practices
SpringPeople
 
Introduction to Big Data
Introduction to Big Data
SpringPeople
 
Introduction to Microsoft Azure IaaS
Introduction to Microsoft Azure IaaS
SpringPeople
 
Introduction to Selenium WebDriver
Introduction to Selenium WebDriver
SpringPeople
 
Introduction to Open stack - An Overview
Introduction to Open stack - An Overview
SpringPeople
 
Best Practices for Administering Hadoop with Hortonworks Data Platform (HDP) ...
Best Practices for Administering Hadoop with Hortonworks Data Platform (HDP) ...
SpringPeople
 
Why 2 million Developers depend on MuleSoft
Why 2 million Developers depend on MuleSoft
SpringPeople
 
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
SpringPeople
 
Mastering Test Automation: How To Use Selenium Successfully
Mastering Test Automation: How To Use Selenium Successfully
SpringPeople
 
An Introduction of Big data; Big data for beginners; Overview of Big Data; Bi...
An Introduction of Big data; Big data for beginners; Overview of Big Data; Bi...
SpringPeople
 
SpringPeople - Introduction to Cloud Computing
SpringPeople - Introduction to Cloud Computing
SpringPeople
 
SpringPeople - Devops skills - Do you have what it takes?
SpringPeople - Devops skills - Do you have what it takes?
SpringPeople
 
Elastic - ELK, Logstash & Kibana
Elastic - ELK, Logstash & Kibana
SpringPeople
 
Hadoop data access layer v4.0
Hadoop data access layer v4.0
SpringPeople
 
Introduction To Core Java - SpringPeople
Introduction To Core Java - SpringPeople
SpringPeople
 
Introduction To Hadoop Administration - SpringPeople
Introduction To Hadoop Administration - SpringPeople
SpringPeople
 
Introduction To Cloud Foundry - SpringPeople
Introduction To Cloud Foundry - SpringPeople
SpringPeople
 
Introduction To Spring Enterprise Integration - SpringPeople
Introduction To Spring Enterprise Integration - SpringPeople
SpringPeople
 
Introduction To Groovy And Grails - SpringPeople
Introduction To Groovy And Grails - SpringPeople
SpringPeople
 
Growth hacking tips and tricks that you can try
Growth hacking tips and tricks that you can try
SpringPeople
 
Top Big data Analytics tools: Emerging trends and Best practices
Top Big data Analytics tools: Emerging trends and Best practices
SpringPeople
 
Introduction to Big Data
Introduction to Big Data
SpringPeople
 
Introduction to Microsoft Azure IaaS
Introduction to Microsoft Azure IaaS
SpringPeople
 
Introduction to Selenium WebDriver
Introduction to Selenium WebDriver
SpringPeople
 
Introduction to Open stack - An Overview
Introduction to Open stack - An Overview
SpringPeople
 
Best Practices for Administering Hadoop with Hortonworks Data Platform (HDP) ...
Best Practices for Administering Hadoop with Hortonworks Data Platform (HDP) ...
SpringPeople
 
Why 2 million Developers depend on MuleSoft
Why 2 million Developers depend on MuleSoft
SpringPeople
 
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
SpringPeople
 
Mastering Test Automation: How To Use Selenium Successfully
Mastering Test Automation: How To Use Selenium Successfully
SpringPeople
 
An Introduction of Big data; Big data for beginners; Overview of Big Data; Bi...
An Introduction of Big data; Big data for beginners; Overview of Big Data; Bi...
SpringPeople
 
SpringPeople - Introduction to Cloud Computing
SpringPeople - Introduction to Cloud Computing
SpringPeople
 
SpringPeople - Devops skills - Do you have what it takes?
SpringPeople - Devops skills - Do you have what it takes?
SpringPeople
 
Elastic - ELK, Logstash & Kibana
Elastic - ELK, Logstash & Kibana
SpringPeople
 
Hadoop data access layer v4.0
Hadoop data access layer v4.0
SpringPeople
 
Introduction To Core Java - SpringPeople
Introduction To Core Java - SpringPeople
SpringPeople
 
Introduction To Hadoop Administration - SpringPeople
Introduction To Hadoop Administration - SpringPeople
SpringPeople
 
Introduction To Cloud Foundry - SpringPeople
Introduction To Cloud Foundry - SpringPeople
SpringPeople
 
Introduction To Spring Enterprise Integration - SpringPeople
Introduction To Spring Enterprise Integration - SpringPeople
SpringPeople
 
Introduction To Groovy And Grails - SpringPeople
Introduction To Groovy And Grails - SpringPeople
SpringPeople
 
Ad

Recently uploaded (20)

This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
LDMMIA Practitioner Student Reiki Yoga S2 Video PDF Without Yogi Goddess
LDMMIA Practitioner Student Reiki Yoga S2 Video PDF Without Yogi Goddess
LDM & Mia eStudios
 
VCE Literature Section A Exam Response Guide
VCE Literature Section A Exam Response Guide
jpinnuck
 
BINARY files CSV files JSON files with example.pptx
BINARY files CSV files JSON files with example.pptx
Ramakrishna Reddy Bijjam
 
LDM Recording Presents Yogi Goddess by LDMMIA
LDM Recording Presents Yogi Goddess by LDMMIA
LDM & Mia eStudios
 
Plate Tectonic Boundaries and Continental Drift Theory
Plate Tectonic Boundaries and Continental Drift Theory
Marie
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
How to Manage Multi Language for Invoice in Odoo 18
How to Manage Multi Language for Invoice in Odoo 18
Celine George
 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
 
How to Manage Inventory Movement in Odoo 18 POS
How to Manage Inventory Movement in Odoo 18 POS
Celine George
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
Non-Communicable Diseases and National Health Programs – Unit 10 | B.Sc Nursi...
Non-Communicable Diseases and National Health Programs – Unit 10 | B.Sc Nursi...
RAKESH SAJJAN
 
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Rajdeep Bavaliya
 
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
LDMMIA Yoga S10 Free Workshop Grad Level
LDMMIA Yoga S10 Free Workshop Grad Level
LDM & Mia eStudios
 
How to Implement Least Package Removal Strategy in Odoo 18 Inventory
How to Implement Least Package Removal Strategy in Odoo 18 Inventory
Celine George
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
TechSoup
 
“THE BEST CLASS IN SCHOOL”. _
“THE BEST CLASS IN SCHOOL”. _
Colégio Santa Teresinha
 
This is why students from these 44 institutions have not received National Se...
This is why students from these 44 institutions have not received National Se...
Kweku Zurek
 
LDMMIA Practitioner Student Reiki Yoga S2 Video PDF Without Yogi Goddess
LDMMIA Practitioner Student Reiki Yoga S2 Video PDF Without Yogi Goddess
LDM & Mia eStudios
 
VCE Literature Section A Exam Response Guide
VCE Literature Section A Exam Response Guide
jpinnuck
 
BINARY files CSV files JSON files with example.pptx
BINARY files CSV files JSON files with example.pptx
Ramakrishna Reddy Bijjam
 
LDM Recording Presents Yogi Goddess by LDMMIA
LDM Recording Presents Yogi Goddess by LDMMIA
LDM & Mia eStudios
 
Plate Tectonic Boundaries and Continental Drift Theory
Plate Tectonic Boundaries and Continental Drift Theory
Marie
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
How to Manage Multi Language for Invoice in Odoo 18
How to Manage Multi Language for Invoice in Odoo 18
Celine George
 
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
SCHIZOPHRENIA OTHER PSYCHOTIC DISORDER LIKE Persistent delusion/Capgras syndr...
parmarjuli1412
 
How to Manage Inventory Movement in Odoo 18 POS
How to Manage Inventory Movement in Odoo 18 POS
Celine George
 
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
ECONOMICS, DISASTER MANAGEMENT, ROAD SAFETY - STUDY MATERIAL [10TH]
SHERAZ AHMAD LONE
 
Non-Communicable Diseases and National Health Programs – Unit 10 | B.Sc Nursi...
Non-Communicable Diseases and National Health Programs – Unit 10 | B.Sc Nursi...
RAKESH SAJJAN
 
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Paper 107 | From Watchdog to Lapdog: Ishiguro’s Fiction and the Rise of “Godi...
Rajdeep Bavaliya
 
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
THE PSYCHOANALYTIC OF THE BLACK CAT BY EDGAR ALLAN POE (1).pdf
nabilahk908
 
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
LAZY SUNDAY QUIZ "A GENERAL QUIZ" JUNE 2025 SMC QUIZ CLUB, SILCHAR MEDICAL CO...
Ultimatewinner0342
 
LDMMIA Yoga S10 Free Workshop Grad Level
LDMMIA Yoga S10 Free Workshop Grad Level
LDM & Mia eStudios
 
How to Implement Least Package Removal Strategy in Odoo 18 Inventory
How to Implement Least Package Removal Strategy in Odoo 18 Inventory
Celine George
 
How to Manage Different Customer Addresses in Odoo 18 Accounting
How to Manage Different Customer Addresses in Odoo 18 Accounting
Celine George
 
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
ABCs of Bookkeeping for Nonprofits TechSoup.pdf
TechSoup
 

SpringPeople Introduction to MongoDB Administration

  • 1. © SpringPeople Software Private Limited, All Rights Reserved.© SpringPeople Software Private Limited, All Rights Reserved. Introduction to MongoDB
  • 2. © SpringPeople Software Private Limited, All Rights Reserved. What is MongoDB? • MongoDB is a NoSQL store - NoSQL revolution happened to solve the many issues faced with storing web-scale data in relational databases • It doesn't use SQL to store and retrieve data • Widely adopted in web applications these days • No clear winner and therefore difficult to choose among alternatives
  • 3. © SpringPeople Software Private Limited, All Rights Reserved. Key Features - MongoDB • The document data model • Ad-hoc queries • Secondary indexes • Replication • Speed & Durability • Scaling
  • 4. © SpringPeople Software Private Limited, All Rights Reserved. MongoDB Concepts Database • A single MongoDB server can have many databases Collections • Collections are a group of Documents (sort of like RDBMS tables) Documents • A record in a MongoDB collection with a maximum size of 16MB Fields • One name-value pair in a document & is analogous to columns in a relational database
  • 5. © SpringPeople Software Private Limited, All Rights Reserved. MongoDB – Hands-On Use-Cases • Blog posts and Comments • E-commerce data – Products and categories – Users and their orders – Reviews of products • LinkedIn Profile Analysis – A person and his/her education and experience
  • 6. © SpringPeople Software Private Limited, All Rights Reserved. Hands-On – CUD of CRUD • LinkedIn case study – JSON document for Profile • C of CRUD – Insert documents – Get, Change, Save • U of CRUD – Update a document – Update multiple documents • D of CRUD – Remove – Drop
  • 7. © SpringPeople Software Private Limited, All Rights Reserved. Hands-On – R of CRUD • Find documents – Find all documents - find – Find a single document - findOne – Specify a condition – Specify multiple conditions – Specifying conditions on sub-documents
  • 8. © SpringPeople Software Private Limited, All Rights Reserved. Indexing • Understanding the need for indexing • The explain • Creating an index • Creating an index with a unique field • Indexes with multiple fields (compound indexes) • Hashed Indexes • Sparsed Indexes • Removing an index • Displaying all indexes • Indexes that support covered queries
  • 9. © SpringPeople Software Private Limited, All Rights Reserved. Replication Why Replication? • Redundancy • Fail-over • Maintenance • Load Balancing Replication Setups • Master/Slave Replication • Replica Set Setup • Arbiter • Finding status via rs.status() on Primary • Fail-over
  • 10. © SpringPeople Software Private Limited, All Rights Reserved. Replication – Oplogs and Heartbeat • Oplog – Capped Collections that is present in a database called local on every replicating node – Location: Database: local, Collection: oplog.rs – Changing the oplog size (via mongod config) • Heartbeat – A 2-second ping with other members that helps the replica set determine if a node has gone down
  • 11. © SpringPeople Software Private Limited, All Rights Reserved. Authentication • Adding the admin user • Adding individual users • Starting the server with auth enabled • Using authentication • Replica sets and authentication
  • 12. © SpringPeople Software Private Limited, All Rights Reserved. Sharding • Idea of sharding • How is sharding different from replication? • The different servers involved – Shards – Routers – Config Servers • Sharding without replication • Sharding with replication • Sharding with security enabled • Bad shard keys • Choosing ideal shard keys
  • 13. © SpringPeople Software Private Limited, All Rights Reserved. Backup, Repair, Import, Export • Backing up the data directory • Issue with backing up the data directory • Using fsync and lock • mongodump • mongorestore • Bsondump • mongoimport • mongoexport
  • 14. © SpringPeople Software Private Limited, All Rights Reserved. Monitoring Admin UI • Getting database information via the UI • HTTP REST based interface Monitoring • serverStatus • dbStats • collStats • mongostat • mongotop • mongosniff
  • 15. © SpringPeople Software Private Limited, All Rights Reserved. Leftovers • Production Checklist • Write concern in replica sets • Full Text Search • Map/Reduce • GridFS
  • 16. © SpringPeople Software Private Limited, All Rights Reserved. Become a MongoDB Expert In 3 Days Flat Attend the 3-Days “MongoDB Administration Workshop” View Complete Details
  • 17. © SpringPeople Software Private Limited, All Rights Reserved. Who will benefit? Application Developers who are currently evaluating the use of MongoDB in their projects View Complete Details
  • 18. © SpringPeople Software Private Limited, All Rights Reserved. For further info/assistance contact [email protected] +91 80 65679700 www.springpeople.com Certified Partner For