SlideShare a Scribd company logo
iFour Consultancy
MongoDB
Introduction, Installation & Execution
https://www.ifourtechnolab.com
 Scalable High-Performance Open-source, Document-orientated database.
 Built for Speed
 Rich Document based queries for Easy readability.
 Full Index Support for High Performance.
 Replication and Failover for High Availability.
 Auto Sharding for Easy Scalability.
 Map / Reduce for Aggregation.
What is MongoDB ?
https://www.ifourtechnolab.com
 SQL was invented in the 70’s to store data.
 MongoDB stores documents (or) objects.
 Now-a-days, everyone works with objects (Python/Ruby/Java/etc.)
 And we need Databases to persist our objects. Then why not store objects
directly ?
 Embedded documents and arrays reduce need for joins. No Joins and No-multi
document transactions.
Why use MongoDB?
https://www.ifourtechnolab.com
 RDBMS replacement for Web Applications.
 Semi-structured Content Management.
 Real-time Analytics & High-Speed Logging.
 Caching and High Scalability
 Web 2.0, Media, SAAS, Gaming
 HealthCare, Finance, Telecom, Government
What is MongoDB great for?
https://www.ifourtechnolab.com
 Highly Transactional Applications.
 Problems requiring SQL.
Not great for?
Some Companies using MongoDB in Production
https://www.ifourtechnolab.com
Advantages of MongoDB
Schema less : Number of fields, content and size of the
document can be differ from one document to another.
No complex joins
Data is stored as JSON style
Index on any attribute
Replication and High availability
https://www.ifourtechnolab.com
7
MongoDB Terminologies for RDBMS concepts
RDBMS MongoDB
Database Database
Table, View Collection
Row Document (JSON, BSON)
Column Field
Index Index
Join Embedded Document
Foreign Key Reference
Partition Shard
https://www.ifourtechnolab.com
JSON
“JavaScript Object Notation”
Easy for humans to write/read, easy for computers to
parse/generate
Objects can be nested
Built on
• name/value pairs
• Ordered list of values
http://json.org/
https://www.ifourtechnolab.com
BSON
“Binary JSON”
Binary-encoded serialization of JSON-like docs
Embedded structure reduces need for joins
Goals
• Lightweight
• Traversable
• Efficient (decoding and encoding)
http://bsonspec.org/
https://www.ifourtechnolab.com
BSON Example
{
"_id" : "37010"
“City" : “Nashik",
“Pin" : 423201,
"state" : “MH",
“Postman” : {
name: “Ramesh Jadhav”
address: “Panchavati”
}
}
https://www.ifourtechnolab.com
Integer
Boolean
Double
String
ArraysNull
Object ID
Binary data
Date
Data Types of MongoDB
https://www.ifourtechnolab.com
 String : This is most commonly used datatype to store the data. String
in mongodb must be UTF-8 valid.
 Integer : This type is used to store a numerical value. Integer can be 32
bit or 64 bit depending upon your server.
 Boolean : This type is used to store a boolean (true/ false) value.
 Double : This type is used to store floating point values.
 Min/ Max keys : This type is used to compare a value against the
lowest and highest BSON elements.
 Arrays : This type is used to store arrays or list or multiple values into
one key.
 Timestamp : ctimestamp. This can be handy for recording when a
document has been modified or added.
 Object : This datatype is used for embedded documents.
Data Types
https://www.ifourtechnolab.com
 Null : This type is used to store a Null value.
 Symbol : This datatype is used identically to a string however,
it's generally reserved for languages that use a specific symbol
type.
 Date : This datatype is used to store the current date or time in
UNIX time format. You can specify your own date time by
creating object of Date and passing day, month, year into it.
 Object ID : This datatype is used to store the document’s ID.
 Binary data : This datatype is used to store binay data.
 Code : This datatype is used to store javascript code into
document.
 Regular expression : This datatype is used to store regular
expression
Data Types
https://www.ifourtechnolab.com
Installation in Windows
 Download MongoDB from Website:
https://www.mongodb.org/downloads
 Select option
Windows
 Download and Run
https://www.ifourtechnolab.com
Create one folder (eg SNJB) in bin folder of MongoDB
Goto command prompt
Goto bin dir of MongoDB and write following command
mongod --storageEngine=mmapv1 --dbpath SNJB
(Server will started and listen at 27017 port)
Open another command prompt and give command mongo
(Client will be started)
Starting MongoDB in Windows
https://www.ifourtechnolab.com
Installation in Ubuntu
 Download MongoDB from Website:
https://www.mongodb.org/downloads
 Select option
Linux
 Download and Run
https://www.ifourtechnolab.com
Starting MongoDB in Ubuntu
Create a folder in bin directory of mongodb
Open terminal
Goto mongodb bin folder (cd mongo….)
Type ./mongod (Server is started)
Open another terminal
Goto mongodb bin folder (cd mongo….)
Type ./mongo (client will be started)
Run all commands on client terminal
https://www.ifourtechnolab.com
Outline
Difference Between SQL and NoSQL
Study of Open Source NOSQL Database
MongoDB Installation,
Basic CRUD operations,
Execution
https://www.ifourtechnolab.com
Database
collection
Basic Database Operations
https://www.ifourtechnolab.com
• switched to database provided with
ciommand
use <database
name>
• To check currently selected
database use the command dbdb
• Displays the list of databasesshow dbs
• To Drop the database
db.dropDatabase
()
Basic Database Operations- Database
https://www.ifourtechnolab.com
• To create collection
db.createCollection (name)
Ex:- db.createCollection(Stud)
• List out all names of collection in current
database>show collections
• In mongodb you don't need to
create collection. MongoDB
creates collection automatically,
when you insert some document.
db.databasename.insert
({Key : Value})
Ex:- db.Stud.insert({{Name:”Jiya”})
• MongoDB's db.collection.drop() is used to
drop a collection from the database.
db.collection.drop()
Example:- db.Stud.drop()
Basic Database Operations- Collection
https://www.ifourtechnolab.com

More Related Content

What's hot (20)

Mongo DB
Mongo DBMongo DB
Mongo DB
SRM University Delhi-NCR sonepat
 
MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...
MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...
MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...
MongoDB
 
Introduction to Mongodb
Introduction to MongodbIntroduction to Mongodb
Introduction to Mongodb
Tulbendra Singh yadav
 
MongoDB
MongoDBMongoDB
MongoDB
Bari (Wordpress, PHP, Joomla)
 
MongoDB 3.2 - a giant leap. What’s new?
MongoDB 3.2 - a giant leap. What’s new?MongoDB 3.2 - a giant leap. What’s new?
MongoDB 3.2 - a giant leap. What’s new?
Binary Studio
 
J s o n
J s o nJ s o n
J s o n
nasifalnahian
 
Mongodb tutorial at Easylearning Guru
Mongodb tutorial  at Easylearning GuruMongodb tutorial  at Easylearning Guru
Mongodb tutorial at Easylearning Guru
KCC Software Ltd. & Easylearning.guru
 
MongoDB presentation
MongoDB presentationMongoDB presentation
MongoDB presentation
Hyphen Call
 
MongoDb
MongoDbMongoDb
MongoDb
Toby Hede
 
MongoDB Schema Design by Examples
MongoDB Schema Design by ExamplesMongoDB Schema Design by Examples
MongoDB Schema Design by Examples
Hadi Ariawan
 
Using MongoDB With Groovy
Using MongoDB With GroovyUsing MongoDB With Groovy
Using MongoDB With Groovy
James Williams
 
MongoDB Schema Design Tips & Tricks
MongoDB Schema Design Tips & TricksMongoDB Schema Design Tips & Tricks
MongoDB Schema Design Tips & Tricks
Juan Antonio Roy Couto
 
Back to Basics Webinar 1: Introduction to NoSQL
Back to Basics Webinar 1: Introduction to NoSQLBack to Basics Webinar 1: Introduction to NoSQL
Back to Basics Webinar 1: Introduction to NoSQL
MongoDB
 
Json
JsonJson
Json
Steve Fort
 
Mongo DB 102
Mongo DB 102Mongo DB 102
Mongo DB 102
Abhijeet Vaikar
 
Java Development with MongoDB (James Williams)
Java Development with MongoDB (James Williams)Java Development with MongoDB (James Williams)
Java Development with MongoDB (James Williams)
MongoSF
 
MongoDB - Ekino PHP
MongoDB - Ekino PHPMongoDB - Ekino PHP
MongoDB - Ekino PHP
Florent DENIS
 
Mongodb Training Tutorial in Bangalore
Mongodb Training Tutorial in BangaloreMongodb Training Tutorial in Bangalore
Mongodb Training Tutorial in Bangalore
rajkamaltibacademy
 
Simple MongoDB design for Rails apps
Simple MongoDB design for Rails appsSimple MongoDB design for Rails apps
Simple MongoDB design for Rails apps
Sérgio Santos
 
MongoDB FabLab León
MongoDB FabLab LeónMongoDB FabLab León
MongoDB FabLab León
Juan Antonio Roy Couto
 
MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...
MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...
MongoDB World 2019: Lessons Learned: Migrating Buffer's Production Database t...
MongoDB
 
MongoDB 3.2 - a giant leap. What’s new?
MongoDB 3.2 - a giant leap. What’s new?MongoDB 3.2 - a giant leap. What’s new?
MongoDB 3.2 - a giant leap. What’s new?
Binary Studio
 
MongoDB presentation
MongoDB presentationMongoDB presentation
MongoDB presentation
Hyphen Call
 
MongoDB Schema Design by Examples
MongoDB Schema Design by ExamplesMongoDB Schema Design by Examples
MongoDB Schema Design by Examples
Hadi Ariawan
 
Using MongoDB With Groovy
Using MongoDB With GroovyUsing MongoDB With Groovy
Using MongoDB With Groovy
James Williams
 
Back to Basics Webinar 1: Introduction to NoSQL
Back to Basics Webinar 1: Introduction to NoSQLBack to Basics Webinar 1: Introduction to NoSQL
Back to Basics Webinar 1: Introduction to NoSQL
MongoDB
 
Java Development with MongoDB (James Williams)
Java Development with MongoDB (James Williams)Java Development with MongoDB (James Williams)
Java Development with MongoDB (James Williams)
MongoSF
 
Mongodb Training Tutorial in Bangalore
Mongodb Training Tutorial in BangaloreMongodb Training Tutorial in Bangalore
Mongodb Training Tutorial in Bangalore
rajkamaltibacademy
 
Simple MongoDB design for Rails apps
Simple MongoDB design for Rails appsSimple MongoDB design for Rails apps
Simple MongoDB design for Rails apps
Sérgio Santos
 

Similar to MongoDB Introduction, Installation & Execution (20)

MongoDB - An Introduction
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introduction
sethfloydjr
 
How sitecore depends on mongo db for scalability and performance, and what it...
How sitecore depends on mongo db for scalability and performance, and what it...How sitecore depends on mongo db for scalability and performance, and what it...
How sitecore depends on mongo db for scalability and performance, and what it...
Antonios Giannopoulos
 
MongoDB and Hadoop
MongoDB and HadoopMongoDB and Hadoop
MongoDB and Hadoop
Tugdual Grall
 
MongoDB et Hadoop
MongoDB et HadoopMongoDB et Hadoop
MongoDB et Hadoop
MongoDB
 
Mongo db transcript
Mongo db transcriptMongo db transcript
Mongo db transcript
foliba
 
Java Persistence Frameworks for MongoDB
Java Persistence Frameworks for MongoDBJava Persistence Frameworks for MongoDB
Java Persistence Frameworks for MongoDB
MongoDB
 
Node Js, AngularJs and Express Js Tutorial
Node Js, AngularJs and Express Js TutorialNode Js, AngularJs and Express Js Tutorial
Node Js, AngularJs and Express Js Tutorial
PHP Support
 
Mongo db and hadoop driving business insights - final
Mongo db and hadoop   driving business insights - finalMongo db and hadoop   driving business insights - final
Mongo db and hadoop driving business insights - final
MongoDB
 
MongoDB and Hadoop: Driving Business Insights
MongoDB and Hadoop: Driving Business InsightsMongoDB and Hadoop: Driving Business Insights
MongoDB and Hadoop: Driving Business Insights
MongoDB
 
Basics of MongoDB
Basics of MongoDB Basics of MongoDB
Basics of MongoDB
HabileLabs
 
Kalp Corporate MongoDB Tutorials
Kalp Corporate MongoDB TutorialsKalp Corporate MongoDB Tutorials
Kalp Corporate MongoDB Tutorials
Kalp Corporate
 
MongoDB Interview Questions PDF By ScholarHat
MongoDB Interview Questions PDF By ScholarHatMongoDB Interview Questions PDF By ScholarHat
MongoDB Interview Questions PDF By ScholarHat
Scholarhat
 
Mongo db Quick Guide
Mongo db Quick GuideMongo db Quick Guide
Mongo db Quick Guide
Sourabh Sahu
 
How do i Meet MongoDB
How do i Meet MongoDBHow do i Meet MongoDB
How do i Meet MongoDB
Antonio Scalzo
 
Java Persistence Frameworks for MongoDB
Java Persistence Frameworks for MongoDBJava Persistence Frameworks for MongoDB
Java Persistence Frameworks for MongoDB
Tobias Trelle
 
Mongo db
Mongo dbMongo db
Mongo db
Gyanendra Yadav
 
Using MongoDB with the .Net Framework
Using MongoDB with the .Net FrameworkUsing MongoDB with the .Net Framework
Using MongoDB with the .Net Framework
Stefano Paluello
 
Building your first app with MongoDB
Building your first app with MongoDBBuilding your first app with MongoDB
Building your first app with MongoDB
Norberto Leite
 
BedCon 2013 - Java Persistenz-Frameworks für MongoDB
BedCon 2013 - Java Persistenz-Frameworks für MongoDBBedCon 2013 - Java Persistenz-Frameworks für MongoDB
BedCon 2013 - Java Persistenz-Frameworks für MongoDB
Tobias Trelle
 
Mongodb Introduction
Mongodb IntroductionMongodb Introduction
Mongodb Introduction
Raghvendra Parashar
 
MongoDB - An Introduction
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introduction
sethfloydjr
 
How sitecore depends on mongo db for scalability and performance, and what it...
How sitecore depends on mongo db for scalability and performance, and what it...How sitecore depends on mongo db for scalability and performance, and what it...
How sitecore depends on mongo db for scalability and performance, and what it...
Antonios Giannopoulos
 
MongoDB et Hadoop
MongoDB et HadoopMongoDB et Hadoop
MongoDB et Hadoop
MongoDB
 
Mongo db transcript
Mongo db transcriptMongo db transcript
Mongo db transcript
foliba
 
Java Persistence Frameworks for MongoDB
Java Persistence Frameworks for MongoDBJava Persistence Frameworks for MongoDB
Java Persistence Frameworks for MongoDB
MongoDB
 
Node Js, AngularJs and Express Js Tutorial
Node Js, AngularJs and Express Js TutorialNode Js, AngularJs and Express Js Tutorial
Node Js, AngularJs and Express Js Tutorial
PHP Support
 
Mongo db and hadoop driving business insights - final
Mongo db and hadoop   driving business insights - finalMongo db and hadoop   driving business insights - final
Mongo db and hadoop driving business insights - final
MongoDB
 
MongoDB and Hadoop: Driving Business Insights
MongoDB and Hadoop: Driving Business InsightsMongoDB and Hadoop: Driving Business Insights
MongoDB and Hadoop: Driving Business Insights
MongoDB
 
Basics of MongoDB
Basics of MongoDB Basics of MongoDB
Basics of MongoDB
HabileLabs
 
Kalp Corporate MongoDB Tutorials
Kalp Corporate MongoDB TutorialsKalp Corporate MongoDB Tutorials
Kalp Corporate MongoDB Tutorials
Kalp Corporate
 
MongoDB Interview Questions PDF By ScholarHat
MongoDB Interview Questions PDF By ScholarHatMongoDB Interview Questions PDF By ScholarHat
MongoDB Interview Questions PDF By ScholarHat
Scholarhat
 
Mongo db Quick Guide
Mongo db Quick GuideMongo db Quick Guide
Mongo db Quick Guide
Sourabh Sahu
 
Java Persistence Frameworks for MongoDB
Java Persistence Frameworks for MongoDBJava Persistence Frameworks for MongoDB
Java Persistence Frameworks for MongoDB
Tobias Trelle
 
Using MongoDB with the .Net Framework
Using MongoDB with the .Net FrameworkUsing MongoDB with the .Net Framework
Using MongoDB with the .Net Framework
Stefano Paluello
 
Building your first app with MongoDB
Building your first app with MongoDBBuilding your first app with MongoDB
Building your first app with MongoDB
Norberto Leite
 
BedCon 2013 - Java Persistenz-Frameworks für MongoDB
BedCon 2013 - Java Persistenz-Frameworks für MongoDBBedCon 2013 - Java Persistenz-Frameworks für MongoDB
BedCon 2013 - Java Persistenz-Frameworks für MongoDB
Tobias Trelle
 
Ad

More from iFour Technolab Pvt. Ltd. (20)

PayPal vs Stripe: Choosing the Best Payment Gateway for Your Business
PayPal vs Stripe: Choosing the Best Payment Gateway for Your BusinessPayPal vs Stripe: Choosing the Best Payment Gateway for Your Business
PayPal vs Stripe: Choosing the Best Payment Gateway for Your Business
iFour Technolab Pvt. Ltd.
 
Top 8 Benefits of QuickBooks and Salesforce Integration
Top 8 Benefits of QuickBooks and Salesforce IntegrationTop 8 Benefits of QuickBooks and Salesforce Integration
Top 8 Benefits of QuickBooks and Salesforce Integration
iFour Technolab Pvt. Ltd.
 
How To Select the Right Office Add-In for Your Business
How To Select the Right Office Add-In for Your BusinessHow To Select the Right Office Add-In for Your Business
How To Select the Right Office Add-In for Your Business
iFour Technolab Pvt. Ltd.
 
Top 10 Reasons Why You Should Choose Salesforce
Top 10 Reasons Why You Should Choose SalesforceTop 10 Reasons Why You Should Choose Salesforce
Top 10 Reasons Why You Should Choose Salesforce
iFour Technolab Pvt. Ltd.
 
Extracting Data from Power BI into Excel
Extracting Data from Power BI into ExcelExtracting Data from Power BI into Excel
Extracting Data from Power BI into Excel
iFour Technolab Pvt. Ltd.
 
Top Data Analytics Trends That Helps CTOs in informed Decision Making
Top Data Analytics Trends That Helps CTOs in informed Decision MakingTop Data Analytics Trends That Helps CTOs in informed Decision Making
Top Data Analytics Trends That Helps CTOs in informed Decision Making
iFour Technolab Pvt. Ltd.
 
Top 17 Problems You Can Solve by Migrating from AWS to Azure
Top 17 Problems You Can Solve by Migrating from AWS to AzureTop 17 Problems You Can Solve by Migrating from AWS to Azure
Top 17 Problems You Can Solve by Migrating from AWS to Azure
iFour Technolab Pvt. Ltd.
 
9 Best Microsoft Teams Add-ins to Try in 2025
9 Best Microsoft Teams Add-ins to Try in 20259 Best Microsoft Teams Add-ins to Try in 2025
9 Best Microsoft Teams Add-ins to Try in 2025
iFour Technolab Pvt. Ltd.
 
8 Ways to Use Office Add-ins to Improve Customer Retention
8 Ways to Use Office Add-ins to Improve Customer Retention8 Ways to Use Office Add-ins to Improve Customer Retention
8 Ways to Use Office Add-ins to Improve Customer Retention
iFour Technolab Pvt. Ltd.
 
5 Ways Power BI Addresses Spreadsheet Challenges
5 Ways Power BI Addresses Spreadsheet Challenges5 Ways Power BI Addresses Spreadsheet Challenges
5 Ways Power BI Addresses Spreadsheet Challenges
iFour Technolab Pvt. Ltd.
 
Power Apps Your Solution to Legal Challenges
Power Apps Your Solution to Legal ChallengesPower Apps Your Solution to Legal Challenges
Power Apps Your Solution to Legal Challenges
iFour Technolab Pvt. Ltd.
 
10 Essential Office Add-ins for Legal Consultants
10 Essential Office Add-ins for Legal Consultants10 Essential Office Add-ins for Legal Consultants
10 Essential Office Add-ins for Legal Consultants
iFour Technolab Pvt. Ltd.
 
SOAP vs REST – API Differences Explained
SOAP vs REST – API Differences ExplainedSOAP vs REST – API Differences Explained
SOAP vs REST – API Differences Explained
iFour Technolab Pvt. Ltd.
 
Power BI Forecasting Challenges and Solutions
Power BI Forecasting Challenges and SolutionsPower BI Forecasting Challenges and Solutions
Power BI Forecasting Challenges and Solutions
iFour Technolab Pvt. Ltd.
 
Top 8 Must-have Google Sheet Add-ons for Legal Consultants
Top 8 Must-have Google Sheet Add-ons for Legal ConsultantsTop 8 Must-have Google Sheet Add-ons for Legal Consultants
Top 8 Must-have Google Sheet Add-ons for Legal Consultants
iFour Technolab Pvt. Ltd.
 
7 Essential Gmail Add-ons to Streamline Fintech Communication
7 Essential Gmail Add-ons to Streamline Fintech Communication7 Essential Gmail Add-ons to Streamline Fintech Communication
7 Essential Gmail Add-ons to Streamline Fintech Communication
iFour Technolab Pvt. Ltd.
 
Top 10 OneNote Add-ins - Executive Should Use
Top 10 OneNote Add-ins - Executive Should UseTop 10 OneNote Add-ins - Executive Should Use
Top 10 OneNote Add-ins - Executive Should Use
iFour Technolab Pvt. Ltd.
 
Power BI vs Tableau - Key Insights for CTOs Making Data-Driven Decisions
Power BI vs Tableau - Key Insights for CTOs Making Data-Driven DecisionsPower BI vs Tableau - Key Insights for CTOs Making Data-Driven Decisions
Power BI vs Tableau - Key Insights for CTOs Making Data-Driven Decisions
iFour Technolab Pvt. Ltd.
 
Top 10 Outlook Add ins for Healthcare Experts
Top 10 Outlook Add ins for Healthcare ExpertsTop 10 Outlook Add ins for Healthcare Experts
Top 10 Outlook Add ins for Healthcare Experts
iFour Technolab Pvt. Ltd.
 
Zapier vs Power Automate - Which Tool is Best for Workflow Automation
Zapier vs Power Automate - Which Tool is Best for Workflow AutomationZapier vs Power Automate - Which Tool is Best for Workflow Automation
Zapier vs Power Automate - Which Tool is Best for Workflow Automation
iFour Technolab Pvt. Ltd.
 
PayPal vs Stripe: Choosing the Best Payment Gateway for Your Business
PayPal vs Stripe: Choosing the Best Payment Gateway for Your BusinessPayPal vs Stripe: Choosing the Best Payment Gateway for Your Business
PayPal vs Stripe: Choosing the Best Payment Gateway for Your Business
iFour Technolab Pvt. Ltd.
 
Top 8 Benefits of QuickBooks and Salesforce Integration
Top 8 Benefits of QuickBooks and Salesforce IntegrationTop 8 Benefits of QuickBooks and Salesforce Integration
Top 8 Benefits of QuickBooks and Salesforce Integration
iFour Technolab Pvt. Ltd.
 
How To Select the Right Office Add-In for Your Business
How To Select the Right Office Add-In for Your BusinessHow To Select the Right Office Add-In for Your Business
How To Select the Right Office Add-In for Your Business
iFour Technolab Pvt. Ltd.
 
Top 10 Reasons Why You Should Choose Salesforce
Top 10 Reasons Why You Should Choose SalesforceTop 10 Reasons Why You Should Choose Salesforce
Top 10 Reasons Why You Should Choose Salesforce
iFour Technolab Pvt. Ltd.
 
Top Data Analytics Trends That Helps CTOs in informed Decision Making
Top Data Analytics Trends That Helps CTOs in informed Decision MakingTop Data Analytics Trends That Helps CTOs in informed Decision Making
Top Data Analytics Trends That Helps CTOs in informed Decision Making
iFour Technolab Pvt. Ltd.
 
Top 17 Problems You Can Solve by Migrating from AWS to Azure
Top 17 Problems You Can Solve by Migrating from AWS to AzureTop 17 Problems You Can Solve by Migrating from AWS to Azure
Top 17 Problems You Can Solve by Migrating from AWS to Azure
iFour Technolab Pvt. Ltd.
 
9 Best Microsoft Teams Add-ins to Try in 2025
9 Best Microsoft Teams Add-ins to Try in 20259 Best Microsoft Teams Add-ins to Try in 2025
9 Best Microsoft Teams Add-ins to Try in 2025
iFour Technolab Pvt. Ltd.
 
8 Ways to Use Office Add-ins to Improve Customer Retention
8 Ways to Use Office Add-ins to Improve Customer Retention8 Ways to Use Office Add-ins to Improve Customer Retention
8 Ways to Use Office Add-ins to Improve Customer Retention
iFour Technolab Pvt. Ltd.
 
5 Ways Power BI Addresses Spreadsheet Challenges
5 Ways Power BI Addresses Spreadsheet Challenges5 Ways Power BI Addresses Spreadsheet Challenges
5 Ways Power BI Addresses Spreadsheet Challenges
iFour Technolab Pvt. Ltd.
 
Power Apps Your Solution to Legal Challenges
Power Apps Your Solution to Legal ChallengesPower Apps Your Solution to Legal Challenges
Power Apps Your Solution to Legal Challenges
iFour Technolab Pvt. Ltd.
 
10 Essential Office Add-ins for Legal Consultants
10 Essential Office Add-ins for Legal Consultants10 Essential Office Add-ins for Legal Consultants
10 Essential Office Add-ins for Legal Consultants
iFour Technolab Pvt. Ltd.
 
Power BI Forecasting Challenges and Solutions
Power BI Forecasting Challenges and SolutionsPower BI Forecasting Challenges and Solutions
Power BI Forecasting Challenges and Solutions
iFour Technolab Pvt. Ltd.
 
Top 8 Must-have Google Sheet Add-ons for Legal Consultants
Top 8 Must-have Google Sheet Add-ons for Legal ConsultantsTop 8 Must-have Google Sheet Add-ons for Legal Consultants
Top 8 Must-have Google Sheet Add-ons for Legal Consultants
iFour Technolab Pvt. Ltd.
 
7 Essential Gmail Add-ons to Streamline Fintech Communication
7 Essential Gmail Add-ons to Streamline Fintech Communication7 Essential Gmail Add-ons to Streamline Fintech Communication
7 Essential Gmail Add-ons to Streamline Fintech Communication
iFour Technolab Pvt. Ltd.
 
Top 10 OneNote Add-ins - Executive Should Use
Top 10 OneNote Add-ins - Executive Should UseTop 10 OneNote Add-ins - Executive Should Use
Top 10 OneNote Add-ins - Executive Should Use
iFour Technolab Pvt. Ltd.
 
Power BI vs Tableau - Key Insights for CTOs Making Data-Driven Decisions
Power BI vs Tableau - Key Insights for CTOs Making Data-Driven DecisionsPower BI vs Tableau - Key Insights for CTOs Making Data-Driven Decisions
Power BI vs Tableau - Key Insights for CTOs Making Data-Driven Decisions
iFour Technolab Pvt. Ltd.
 
Top 10 Outlook Add ins for Healthcare Experts
Top 10 Outlook Add ins for Healthcare ExpertsTop 10 Outlook Add ins for Healthcare Experts
Top 10 Outlook Add ins for Healthcare Experts
iFour Technolab Pvt. Ltd.
 
Zapier vs Power Automate - Which Tool is Best for Workflow Automation
Zapier vs Power Automate - Which Tool is Best for Workflow AutomationZapier vs Power Automate - Which Tool is Best for Workflow Automation
Zapier vs Power Automate - Which Tool is Best for Workflow Automation
iFour Technolab Pvt. Ltd.
 
Ad

Recently uploaded (20)

Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto CertificateCybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
VICTOR MAESTRE RAMIREZ
 
Co-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using ProvenanceCo-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using Provenance
Paul Groth
 
Evaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical ContentEvaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical Content
Paul Groth
 
TrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy ContractingTrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy Contracting
TrustArc
 
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 ADr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr. Jimmy Schwarzkopf
 
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
Jasper Oosterveld
 
Contributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptxContributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptx
Patrick Lumumba
 
SDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhereSDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhere
Adtran
 
Grannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI ExperiencesGrannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI Experiences
Lauren Parr
 
Dev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API WorkflowsDev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API Workflows
UiPathCommunity
 
AI Emotional Actors: “When Machines Learn to Feel and Perform"
AI Emotional Actors:  “When Machines Learn to Feel and Perform"AI Emotional Actors:  “When Machines Learn to Feel and Perform"
AI Emotional Actors: “When Machines Learn to Feel and Perform"
AkashKumar809858
 
6th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 20256th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 2025
DanBrown980551
 
Microsoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentationMicrosoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentation
Digitalmara
 
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyesEnd-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
ThousandEyes
 
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Lorenzo Miniero
 
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk TechniciansOffshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
john823664
 
Agentic AI Explained: The Next Frontier of Autonomous Intelligence & Generati...
Agentic AI Explained: The Next Frontier of Autonomous Intelligence & Generati...Agentic AI Explained: The Next Frontier of Autonomous Intelligence & Generati...
Agentic AI Explained: The Next Frontier of Autonomous Intelligence & Generati...
Aaryan Kansari
 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
 
STKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 versionSTKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 version
Dr. Jimmy Schwarzkopf
 
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Nikki Chapple
 
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto CertificateCybersecurity Fundamentals: Apprentice - Palo Alto Certificate
Cybersecurity Fundamentals: Apprentice - Palo Alto Certificate
VICTOR MAESTRE RAMIREZ
 
Co-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using ProvenanceCo-Constructing Explanations for AI Systems using Provenance
Co-Constructing Explanations for AI Systems using Provenance
Paul Groth
 
Evaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical ContentEvaluation Challenges in Using Generative AI for Science & Technical Content
Evaluation Challenges in Using Generative AI for Science & Technical Content
Paul Groth
 
TrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy ContractingTrustArc Webinar: Mastering Privacy Contracting
TrustArc Webinar: Mastering Privacy Contracting
TrustArc
 
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 ADr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr Jimmy Schwarzkopf presentation on the SUMMIT 2025 A
Dr. Jimmy Schwarzkopf
 
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
ELNL2025 - Unlocking the Power of Sensitivity Labels - A Comprehensive Guide....
Jasper Oosterveld
 
Contributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptxContributing to WordPress With & Without Code.pptx
Contributing to WordPress With & Without Code.pptx
Patrick Lumumba
 
SDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhereSDG 9000 Series: Unleashing multigigabit everywhere
SDG 9000 Series: Unleashing multigigabit everywhere
Adtran
 
Grannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI ExperiencesGrannie’s Journey to Using Healthcare AI Experiences
Grannie’s Journey to Using Healthcare AI Experiences
Lauren Parr
 
Dev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API WorkflowsDev Dives: System-to-system integration with UiPath API Workflows
Dev Dives: System-to-system integration with UiPath API Workflows
UiPathCommunity
 
AI Emotional Actors: “When Machines Learn to Feel and Perform"
AI Emotional Actors:  “When Machines Learn to Feel and Perform"AI Emotional Actors:  “When Machines Learn to Feel and Perform"
AI Emotional Actors: “When Machines Learn to Feel and Perform"
AkashKumar809858
 
6th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 20256th Power Grid Model Meetup - 21 May 2025
6th Power Grid Model Meetup - 21 May 2025
DanBrown980551
 
Microsoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentationMicrosoft Build 2025 takeaways in one presentation
Microsoft Build 2025 takeaways in one presentation
Digitalmara
 
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyesEnd-to-end Assurance for SD-WAN & SASE with ThousandEyes
End-to-end Assurance for SD-WAN & SASE with ThousandEyes
ThousandEyes
 
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Multistream in SIP and NoSIP @ OpenSIPS Summit 2025
Lorenzo Miniero
 
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk TechniciansOffshore IT Support: Balancing In-House and Offshore Help Desk Technicians
Offshore IT Support: Balancing In-House and Offshore Help Desk Technicians
john823664
 
Agentic AI Explained: The Next Frontier of Autonomous Intelligence & Generati...
Agentic AI Explained: The Next Frontier of Autonomous Intelligence & Generati...Agentic AI Explained: The Next Frontier of Autonomous Intelligence & Generati...
Agentic AI Explained: The Next Frontier of Autonomous Intelligence & Generati...
Aaryan Kansari
 
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptxECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
ECS25 - The adventures of a Microsoft 365 Platform Owner - Website.pptx
Jasper Oosterveld
 
STKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 versionSTKI Israel Market Study 2025 final v1 version
STKI Israel Market Study 2025 final v1 version
Dr. Jimmy Schwarzkopf
 
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Protecting Your Sensitive Data with Microsoft Purview - IRMS 2025
Nikki Chapple
 

MongoDB Introduction, Installation & Execution

  • 1. iFour Consultancy MongoDB Introduction, Installation & Execution https://www.ifourtechnolab.com
  • 2.  Scalable High-Performance Open-source, Document-orientated database.  Built for Speed  Rich Document based queries for Easy readability.  Full Index Support for High Performance.  Replication and Failover for High Availability.  Auto Sharding for Easy Scalability.  Map / Reduce for Aggregation. What is MongoDB ? https://www.ifourtechnolab.com
  • 3.  SQL was invented in the 70’s to store data.  MongoDB stores documents (or) objects.  Now-a-days, everyone works with objects (Python/Ruby/Java/etc.)  And we need Databases to persist our objects. Then why not store objects directly ?  Embedded documents and arrays reduce need for joins. No Joins and No-multi document transactions. Why use MongoDB? https://www.ifourtechnolab.com
  • 4.  RDBMS replacement for Web Applications.  Semi-structured Content Management.  Real-time Analytics & High-Speed Logging.  Caching and High Scalability  Web 2.0, Media, SAAS, Gaming  HealthCare, Finance, Telecom, Government What is MongoDB great for? https://www.ifourtechnolab.com
  • 5.  Highly Transactional Applications.  Problems requiring SQL. Not great for? Some Companies using MongoDB in Production https://www.ifourtechnolab.com
  • 6. Advantages of MongoDB Schema less : Number of fields, content and size of the document can be differ from one document to another. No complex joins Data is stored as JSON style Index on any attribute Replication and High availability https://www.ifourtechnolab.com
  • 7. 7 MongoDB Terminologies for RDBMS concepts RDBMS MongoDB Database Database Table, View Collection Row Document (JSON, BSON) Column Field Index Index Join Embedded Document Foreign Key Reference Partition Shard https://www.ifourtechnolab.com
  • 8. JSON “JavaScript Object Notation” Easy for humans to write/read, easy for computers to parse/generate Objects can be nested Built on • name/value pairs • Ordered list of values http://json.org/ https://www.ifourtechnolab.com
  • 9. BSON “Binary JSON” Binary-encoded serialization of JSON-like docs Embedded structure reduces need for joins Goals • Lightweight • Traversable • Efficient (decoding and encoding) http://bsonspec.org/ https://www.ifourtechnolab.com
  • 10. BSON Example { "_id" : "37010" “City" : “Nashik", “Pin" : 423201, "state" : “MH", “Postman” : { name: “Ramesh Jadhav” address: “Panchavati” } } https://www.ifourtechnolab.com
  • 11. Integer Boolean Double String ArraysNull Object ID Binary data Date Data Types of MongoDB https://www.ifourtechnolab.com
  • 12.  String : This is most commonly used datatype to store the data. String in mongodb must be UTF-8 valid.  Integer : This type is used to store a numerical value. Integer can be 32 bit or 64 bit depending upon your server.  Boolean : This type is used to store a boolean (true/ false) value.  Double : This type is used to store floating point values.  Min/ Max keys : This type is used to compare a value against the lowest and highest BSON elements.  Arrays : This type is used to store arrays or list or multiple values into one key.  Timestamp : ctimestamp. This can be handy for recording when a document has been modified or added.  Object : This datatype is used for embedded documents. Data Types https://www.ifourtechnolab.com
  • 13.  Null : This type is used to store a Null value.  Symbol : This datatype is used identically to a string however, it's generally reserved for languages that use a specific symbol type.  Date : This datatype is used to store the current date or time in UNIX time format. You can specify your own date time by creating object of Date and passing day, month, year into it.  Object ID : This datatype is used to store the document’s ID.  Binary data : This datatype is used to store binay data.  Code : This datatype is used to store javascript code into document.  Regular expression : This datatype is used to store regular expression Data Types https://www.ifourtechnolab.com
  • 14. Installation in Windows  Download MongoDB from Website: https://www.mongodb.org/downloads  Select option Windows  Download and Run https://www.ifourtechnolab.com
  • 15. Create one folder (eg SNJB) in bin folder of MongoDB Goto command prompt Goto bin dir of MongoDB and write following command mongod --storageEngine=mmapv1 --dbpath SNJB (Server will started and listen at 27017 port) Open another command prompt and give command mongo (Client will be started) Starting MongoDB in Windows https://www.ifourtechnolab.com
  • 16. Installation in Ubuntu  Download MongoDB from Website: https://www.mongodb.org/downloads  Select option Linux  Download and Run https://www.ifourtechnolab.com
  • 17. Starting MongoDB in Ubuntu Create a folder in bin directory of mongodb Open terminal Goto mongodb bin folder (cd mongo….) Type ./mongod (Server is started) Open another terminal Goto mongodb bin folder (cd mongo….) Type ./mongo (client will be started) Run all commands on client terminal https://www.ifourtechnolab.com
  • 18. Outline Difference Between SQL and NoSQL Study of Open Source NOSQL Database MongoDB Installation, Basic CRUD operations, Execution https://www.ifourtechnolab.com
  • 20. • switched to database provided with ciommand use <database name> • To check currently selected database use the command dbdb • Displays the list of databasesshow dbs • To Drop the database db.dropDatabase () Basic Database Operations- Database https://www.ifourtechnolab.com
  • 21. • To create collection db.createCollection (name) Ex:- db.createCollection(Stud) • List out all names of collection in current database>show collections • In mongodb you don't need to create collection. MongoDB creates collection automatically, when you insert some document. db.databasename.insert ({Key : Value}) Ex:- db.Stud.insert({{Name:”Jiya”}) • MongoDB's db.collection.drop() is used to drop a collection from the database. db.collection.drop() Example:- db.Stud.drop() Basic Database Operations- Collection https://www.ifourtechnolab.com

Editor's Notes

  • #2: Software Outsourcing Company India - http://www.ifourtechnolab.com/
  • #8: Javascript