SlideShare a Scribd company logo
Open source, high performance
Document-oriented database
• Introduction to MongoDB
• MongoDB Rationale
• MongoDB Relative to RDBMS
• MongoDB- Schemaless
• Web Application Framework with MongoDB
• JSON
• Introduction to Mongo Shell
• CRUD
• Further Readings
Agenda
General
Purpose
Introduction to MongoDB
Easy to
Use
Fast &
Scalable
Sophisticated
query language
Full featured
indexes
Rich data model
Simple to setup
and manage
Native language
drivers in all
popular languages
Easy mapping to
object oriented
code
Dynamically add /
remove capacity
with no downtime
Auto-sharding
built in
Operates at in-
memory speed
wherever possible
• MongoDB was created to make
it easy to code, scale, and manage databases.
• In agile programming, the sprint cycles are usually 3-5
weeks long.
• Adding new columns to same collection is easy and
intuitive.
Agile and Scalable
MongoDB is fast and scalable
Better data locality
Relational MongoDB
In-Memory
Caching
Distributed Architecture
Horizontal Scaling
Replication/HA
• Scaling horizontally (scale out) over commodity hardware is
cheaper
• RDBMS best features should be support:
– Ad hoc queries
– Fully featured indexes
– Secondary indexes
• Avoid things which does not scale well horizontally:
– Long running multi-row transactions
– Joins
• Schema less design:
– support for heterogeneous data within same collection
– No more configuring database columns with types
• Make web programming simpler and more productive by
support of APIs.
MongoDB Rationale
• Collection vs table
• Document vs row
• Field vs column
• schema-less vs schema-oriented
• Embedded documents, linking vs Joins
MongoDB Relative to RDBMS
Features MySQL MongoDB
Rich Data Model No Yes
Dynamic Schema No Yes
Typed Data Yes Yes
Data Locality No Yes
Field Updates Yes Yes
Easy for Programmers No Yes
Complex Transactions Yes No
Auditing Yes Yes
Auto-Sharding No Yes
MySQL vs MongoDB
• MongoDB does not need any pre-defined data schema
• Every document could have different data!
MongoDB- Schema less
name: “Kartik”,
color: “Red”,
loc: [40.7, 73.4],
Hobbies: “cycling”}
{name: “Avinash”,
aliases: [“Avi”]}
name: “Ram”,
HasHat: ”yes”}
{name: “Manish”,
Food: “Pasta”,
height: 172,
loc: [44.6, 71.3]}
{name: “Rajesh,
color: “blue”,
birthplace: “NY”,
aliases: [“Raj”,
“limbo”],
loc: [32.7, 63.4]}
Web Application Framework with
MongDB
MongoDB
Mongod
process
Mongo
Shell
JavaScript Interpreter
TCP/IP
Java App Code
MVC
MongoDB Java
Driver
JVM
User Request Rest API
TCP/IP
Json
• JSON (JavaScript Object Notation) is a lightweight data-
interchange format.
• It is easy for humans to read and write.
• It is easy for machines to parse and generate.
• It is based on a subset of the JavaScript Programming
Language.
• JSON is a text format that is completely language independent
but uses conventions that are familiar to programmers of the
C-family of languages, including C, C++, C#, Java, JavaScript,
Perl, Python, and many others.
• These properties make JSON an ideal data-interchange
language.
JSON
• Quick Demo on use to Mongo Shell
• Demonstration of how to start the Mongod process
• Connecting to MongoDB via mongo
• Basics commands
Introduction to Mongo Shell
• db.collection.insert()
• db.collection.find()/ db.collection.findOne()
• db.collection.update({string:value},{$set:{string:value}})
• db.collection.remove()
CRUD
• MongoDB is open source and there is no cost to
download and use it. 
• MongoDB is a general purpose database that is used for
a variety of use cases. The most common use cases for
MongoDB include:
– Single View,
– Internet of Things,
– Mobile,
– Real-Time Analytics,
– Catalog, and
– Content Management.
• https://university.mongodb.com/
• http://docs.mongodb.org/manual/reference/sql-
comparison/
• http://docs.mongodb.org/manual/reference/sql-
aggregation-comparison/
Further Readings

More Related Content

What's hot

Why MongoDB over other Databases - Habilelabs
Why MongoDB over other Databases - HabilelabsWhy MongoDB over other Databases - Habilelabs
Why MongoDB over other Databases - Habilelabs
Habilelabs
 
A Presentation on MongoDB Introduction - Habilelabs
A Presentation on MongoDB Introduction - HabilelabsA Presentation on MongoDB Introduction - Habilelabs
A Presentation on MongoDB Introduction - Habilelabs
Habilelabs
 
Welcome to MongoDB Tokyo 2012
Welcome to MongoDB Tokyo 2012Welcome to MongoDB Tokyo 2012
Welcome to MongoDB Tokyo 2012MongoDB
 
Capacity Planning For Your Growing MongoDB Cluster
Capacity Planning For Your Growing MongoDB ClusterCapacity Planning For Your Growing MongoDB Cluster
Capacity Planning For Your Growing MongoDB Cluster
MongoDB
 
Webinar: MongoDB and Hadoop - Working Together to provide Business Insights
Webinar: MongoDB and Hadoop - Working Together to provide Business InsightsWebinar: MongoDB and Hadoop - Working Together to provide Business Insights
Webinar: MongoDB and Hadoop - Working Together to provide Business Insights
MongoDB
 
Discover MongoDB - Israel
Discover MongoDB - IsraelDiscover MongoDB - Israel
Discover MongoDB - IsraelMichael Fiedler
 
10 mongo db
10 mongo db10 mongo db
10 mongo db
Ahmed Elbassel
 
MongoDB
MongoDBMongoDB
Webinar: When to Use MongoDB
Webinar: When to Use MongoDBWebinar: When to Use MongoDB
Webinar: When to Use MongoDB
MongoDB
 
Branf final bringing mongodb into your organization - mongo db-boston2012
Branf final   bringing mongodb into your organization - mongo db-boston2012Branf final   bringing mongodb into your organization - mongo db-boston2012
Branf final bringing mongodb into your organization - mongo db-boston2012MongoDB
 
2012 mongo db_bangalore_roadmap_new
2012 mongo db_bangalore_roadmap_new2012 mongo db_bangalore_roadmap_new
2012 mongo db_bangalore_roadmap_newMongoDB
 
Mongo Seattle - The Business of MongoDB
Mongo Seattle - The Business of MongoDBMongo Seattle - The Business of MongoDB
Mongo Seattle - The Business of MongoDBJustin Smestad
 
MongoDB SF Python
MongoDB SF PythonMongoDB SF Python
MongoDB SF Python
Mike Dirolf
 
Mongo db intro.pptx
Mongo db intro.pptxMongo db intro.pptx
Mongo db intro.pptx
JWORKS powered by Ordina
 
Mango Database - Web Development
Mango Database - Web DevelopmentMango Database - Web Development
Mango Database - Web Development
mssaman
 
MongoDB vs OrientDB
MongoDB vs OrientDBMongoDB vs OrientDB
MongoDB vs OrientDB
Stefano Campese
 
Mongodb @ vrt
Mongodb @ vrtMongodb @ vrt
MongoDB introduction
MongoDB introductionMongoDB introduction
MongoDB introduction
Edward Yoon
 
GIDS 2016 Understanding and Building No SQLs
GIDS 2016 Understanding and Building No SQLsGIDS 2016 Understanding and Building No SQLs
GIDS 2016 Understanding and Building No SQLs
techmaddy
 

What's hot (20)

Why MongoDB over other Databases - Habilelabs
Why MongoDB over other Databases - HabilelabsWhy MongoDB over other Databases - Habilelabs
Why MongoDB over other Databases - Habilelabs
 
Introduction to mongoDB
Introduction to mongoDBIntroduction to mongoDB
Introduction to mongoDB
 
A Presentation on MongoDB Introduction - Habilelabs
A Presentation on MongoDB Introduction - HabilelabsA Presentation on MongoDB Introduction - Habilelabs
A Presentation on MongoDB Introduction - Habilelabs
 
Welcome to MongoDB Tokyo 2012
Welcome to MongoDB Tokyo 2012Welcome to MongoDB Tokyo 2012
Welcome to MongoDB Tokyo 2012
 
Capacity Planning For Your Growing MongoDB Cluster
Capacity Planning For Your Growing MongoDB ClusterCapacity Planning For Your Growing MongoDB Cluster
Capacity Planning For Your Growing MongoDB Cluster
 
Webinar: MongoDB and Hadoop - Working Together to provide Business Insights
Webinar: MongoDB and Hadoop - Working Together to provide Business InsightsWebinar: MongoDB and Hadoop - Working Together to provide Business Insights
Webinar: MongoDB and Hadoop - Working Together to provide Business Insights
 
Discover MongoDB - Israel
Discover MongoDB - IsraelDiscover MongoDB - Israel
Discover MongoDB - Israel
 
10 mongo db
10 mongo db10 mongo db
10 mongo db
 
MongoDB
MongoDBMongoDB
MongoDB
 
Webinar: When to Use MongoDB
Webinar: When to Use MongoDBWebinar: When to Use MongoDB
Webinar: When to Use MongoDB
 
Branf final bringing mongodb into your organization - mongo db-boston2012
Branf final   bringing mongodb into your organization - mongo db-boston2012Branf final   bringing mongodb into your organization - mongo db-boston2012
Branf final bringing mongodb into your organization - mongo db-boston2012
 
2012 mongo db_bangalore_roadmap_new
2012 mongo db_bangalore_roadmap_new2012 mongo db_bangalore_roadmap_new
2012 mongo db_bangalore_roadmap_new
 
Mongo Seattle - The Business of MongoDB
Mongo Seattle - The Business of MongoDBMongo Seattle - The Business of MongoDB
Mongo Seattle - The Business of MongoDB
 
MongoDB SF Python
MongoDB SF PythonMongoDB SF Python
MongoDB SF Python
 
Mongo db intro.pptx
Mongo db intro.pptxMongo db intro.pptx
Mongo db intro.pptx
 
Mango Database - Web Development
Mango Database - Web DevelopmentMango Database - Web Development
Mango Database - Web Development
 
MongoDB vs OrientDB
MongoDB vs OrientDBMongoDB vs OrientDB
MongoDB vs OrientDB
 
Mongodb @ vrt
Mongodb @ vrtMongodb @ vrt
Mongodb @ vrt
 
MongoDB introduction
MongoDB introductionMongoDB introduction
MongoDB introduction
 
GIDS 2016 Understanding and Building No SQLs
GIDS 2016 Understanding and Building No SQLsGIDS 2016 Understanding and Building No SQLs
GIDS 2016 Understanding and Building No SQLs
 

Viewers also liked

Company Culture
Company CultureCompany Culture
Company Culture
Bridget McGahen
 
CURRICULUM_VITEA_HABTE
CURRICULUM_VITEA_HABTECURRICULUM_VITEA_HABTE
CURRICULUM_VITEA_HABTEHABTE DEBISA
 
Wal-Mart’s operations and supply chain management system
Wal-Mart’s operations and supply chain management system Wal-Mart’s operations and supply chain management system
Wal-Mart’s operations and supply chain management system Scott Burns
 
Greg Peskay Transfer List Updated
Greg Peskay Transfer List UpdatedGreg Peskay Transfer List Updated
Greg Peskay Transfer List UpdatedGregory Peskay
 
Communications Specialist, Post-Production Supervisor
Communications Specialist, Post-Production SupervisorCommunications Specialist, Post-Production Supervisor
Communications Specialist, Post-Production Supervisor
Gregory Peskay
 
Lenguaje
LenguajeLenguaje
Lenguaje
juanyufra
 
Lenguaje
LenguajeLenguaje
Lenguaje
juanyufra
 
Future of call centers
Future of call centersFuture of call centers
Future of call centersScott Burns
 
Crossix culture
Crossix cultureCrossix culture
Crossix culture
Bridget McGahen
 
Crossix culture
Crossix cultureCrossix culture
Crossix culture
Bridget McGahen
 
Baskin robbins test vijayalaxmi_yadav
Baskin robbins test vijayalaxmi_yadavBaskin robbins test vijayalaxmi_yadav
Baskin robbins test vijayalaxmi_yadav
vj_276
 
Crossix culture
Crossix cultureCrossix culture
Crossix culture
Bridget McGahen
 

Viewers also liked (14)

Company Culture
Company CultureCompany Culture
Company Culture
 
Shadab Afroz
Shadab AfrozShadab Afroz
Shadab Afroz
 
CURRICULUM_VITEA_HABTE
CURRICULUM_VITEA_HABTECURRICULUM_VITEA_HABTE
CURRICULUM_VITEA_HABTE
 
Wal-Mart’s operations and supply chain management system
Wal-Mart’s operations and supply chain management system Wal-Mart’s operations and supply chain management system
Wal-Mart’s operations and supply chain management system
 
Greg Peskay Transfer List Updated
Greg Peskay Transfer List UpdatedGreg Peskay Transfer List Updated
Greg Peskay Transfer List Updated
 
Communications Specialist, Post-Production Supervisor
Communications Specialist, Post-Production SupervisorCommunications Specialist, Post-Production Supervisor
Communications Specialist, Post-Production Supervisor
 
CV.nandar
CV.nandarCV.nandar
CV.nandar
 
Lenguaje
LenguajeLenguaje
Lenguaje
 
Lenguaje
LenguajeLenguaje
Lenguaje
 
Future of call centers
Future of call centersFuture of call centers
Future of call centers
 
Crossix culture
Crossix cultureCrossix culture
Crossix culture
 
Crossix culture
Crossix cultureCrossix culture
Crossix culture
 
Baskin robbins test vijayalaxmi_yadav
Baskin robbins test vijayalaxmi_yadavBaskin robbins test vijayalaxmi_yadav
Baskin robbins test vijayalaxmi_yadav
 
Crossix culture
Crossix cultureCrossix culture
Crossix culture
 

Similar to mongodb_Introduction

When to Use MongoDB
When to Use MongoDBWhen to Use MongoDB
When to Use MongoDB
MongoDB
 
NoSQL and MongoDB
NoSQL and MongoDBNoSQL and MongoDB
NoSQL and MongoDB
Rajesh Menon
 
MongoDB Basics
MongoDB BasicsMongoDB Basics
MongoDB Basics
Sarang Shravagi
 
MongoDB.local Sydney: An Introduction to Document Databases with MongoDB
MongoDB.local Sydney: An Introduction to Document Databases with MongoDBMongoDB.local Sydney: An Introduction to Document Databases with MongoDB
MongoDB.local Sydney: An Introduction to Document Databases with MongoDB
MongoDB
 
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
Hariharan Ganesan
 
Introduction-to-MongoDB.pptx
Introduction-to-MongoDB.pptxIntroduction-to-MongoDB.pptx
Introduction-to-MongoDB.pptx
MohamedAdelMostafa
 
Drop acid
Drop acidDrop acid
Drop acid
Mike Feltman
 
Dropping ACID: Wrapping Your Mind Around NoSQL Databases
Dropping ACID: Wrapping Your Mind Around NoSQL DatabasesDropping ACID: Wrapping Your Mind Around NoSQL Databases
Dropping ACID: Wrapping Your Mind Around NoSQL Databases
Kyle Banerjee
 
Mongo db
Mongo dbMongo db
Hybrid MongoDB and RDBMS Applications
Hybrid MongoDB and RDBMS ApplicationsHybrid MongoDB and RDBMS Applications
Hybrid MongoDB and RDBMS ApplicationsSteven Francia
 
recenttrendtechnology-2112N18132657.pptx
recenttrendtechnology-2112N18132657.pptxrecenttrendtechnology-2112N18132657.pptx
recenttrendtechnology-2112N18132657.pptx
AMITKUMAR938671
 
Mongo db first steps with csharp
Mongo db first steps with csharpMongo db first steps with csharp
Mongo db first steps with csharpSerdar Buyuktemiz
 
Mongo DB at Community Engine
Mongo DB at Community EngineMongo DB at Community Engine
Mongo DB at Community Engine
Community Engine
 
MongoDB at community engine
MongoDB at community engineMongoDB at community engine
MongoDB at community engine
mathraq
 
Using MongoDB For BigData in 20 Minutes
Using MongoDB For BigData in 20 MinutesUsing MongoDB For BigData in 20 Minutes
Using MongoDB For BigData in 20 Minutes
András Fehér
 
Jumpstart: Your Introduction to MongoDB
Jumpstart: Your Introduction to MongoDBJumpstart: Your Introduction to MongoDB
Jumpstart: Your Introduction to MongoDB
MongoDB
 
Navigating NoSQL in cloudy skies
Navigating NoSQL in cloudy skiesNavigating NoSQL in cloudy skies
Navigating NoSQL in cloudy skies
shnkr_rmchndrn
 
Azure DocumentDB Overview
Azure DocumentDB OverviewAzure DocumentDB Overview
Azure DocumentDB Overview
Andrew Liu
 
Sharing a Startup’s Big Data Lessons
Sharing a Startup’s Big Data LessonsSharing a Startup’s Big Data Lessons
Sharing a Startup’s Big Data LessonsGeorge Stathis
 
Introduction to MERN Stack
Introduction to MERN StackIntroduction to MERN Stack
Introduction to MERN Stack
Surya937648
 

Similar to mongodb_Introduction (20)

When to Use MongoDB
When to Use MongoDBWhen to Use MongoDB
When to Use MongoDB
 
NoSQL and MongoDB
NoSQL and MongoDBNoSQL and MongoDB
NoSQL and MongoDB
 
MongoDB Basics
MongoDB BasicsMongoDB Basics
MongoDB Basics
 
MongoDB.local Sydney: An Introduction to Document Databases with MongoDB
MongoDB.local Sydney: An Introduction to Document Databases with MongoDBMongoDB.local Sydney: An Introduction to Document Databases with MongoDB
MongoDB.local Sydney: An Introduction to Document Databases with MongoDB
 
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
MEAN Stack - Introduction & Advantages - Why should you switch to MEAN stack ...
 
Introduction-to-MongoDB.pptx
Introduction-to-MongoDB.pptxIntroduction-to-MongoDB.pptx
Introduction-to-MongoDB.pptx
 
Drop acid
Drop acidDrop acid
Drop acid
 
Dropping ACID: Wrapping Your Mind Around NoSQL Databases
Dropping ACID: Wrapping Your Mind Around NoSQL DatabasesDropping ACID: Wrapping Your Mind Around NoSQL Databases
Dropping ACID: Wrapping Your Mind Around NoSQL Databases
 
Mongo db
Mongo dbMongo db
Mongo db
 
Hybrid MongoDB and RDBMS Applications
Hybrid MongoDB and RDBMS ApplicationsHybrid MongoDB and RDBMS Applications
Hybrid MongoDB and RDBMS Applications
 
recenttrendtechnology-2112N18132657.pptx
recenttrendtechnology-2112N18132657.pptxrecenttrendtechnology-2112N18132657.pptx
recenttrendtechnology-2112N18132657.pptx
 
Mongo db first steps with csharp
Mongo db first steps with csharpMongo db first steps with csharp
Mongo db first steps with csharp
 
Mongo DB at Community Engine
Mongo DB at Community EngineMongo DB at Community Engine
Mongo DB at Community Engine
 
MongoDB at community engine
MongoDB at community engineMongoDB at community engine
MongoDB at community engine
 
Using MongoDB For BigData in 20 Minutes
Using MongoDB For BigData in 20 MinutesUsing MongoDB For BigData in 20 Minutes
Using MongoDB For BigData in 20 Minutes
 
Jumpstart: Your Introduction to MongoDB
Jumpstart: Your Introduction to MongoDBJumpstart: Your Introduction to MongoDB
Jumpstart: Your Introduction to MongoDB
 
Navigating NoSQL in cloudy skies
Navigating NoSQL in cloudy skiesNavigating NoSQL in cloudy skies
Navigating NoSQL in cloudy skies
 
Azure DocumentDB Overview
Azure DocumentDB OverviewAzure DocumentDB Overview
Azure DocumentDB Overview
 
Sharing a Startup’s Big Data Lessons
Sharing a Startup’s Big Data LessonsSharing a Startup’s Big Data Lessons
Sharing a Startup’s Big Data Lessons
 
Introduction to MERN Stack
Introduction to MERN StackIntroduction to MERN Stack
Introduction to MERN Stack
 

mongodb_Introduction

  • 1. Open source, high performance Document-oriented database
  • 2. • Introduction to MongoDB • MongoDB Rationale • MongoDB Relative to RDBMS • MongoDB- Schemaless • Web Application Framework with MongoDB • JSON • Introduction to Mongo Shell • CRUD • Further Readings Agenda
  • 3. General Purpose Introduction to MongoDB Easy to Use Fast & Scalable Sophisticated query language Full featured indexes Rich data model Simple to setup and manage Native language drivers in all popular languages Easy mapping to object oriented code Dynamically add / remove capacity with no downtime Auto-sharding built in Operates at in- memory speed wherever possible
  • 4. • MongoDB was created to make it easy to code, scale, and manage databases. • In agile programming, the sprint cycles are usually 3-5 weeks long. • Adding new columns to same collection is easy and intuitive. Agile and Scalable
  • 5. MongoDB is fast and scalable Better data locality Relational MongoDB In-Memory Caching Distributed Architecture Horizontal Scaling Replication/HA
  • 6. • Scaling horizontally (scale out) over commodity hardware is cheaper • RDBMS best features should be support: – Ad hoc queries – Fully featured indexes – Secondary indexes • Avoid things which does not scale well horizontally: – Long running multi-row transactions – Joins • Schema less design: – support for heterogeneous data within same collection – No more configuring database columns with types • Make web programming simpler and more productive by support of APIs. MongoDB Rationale
  • 7. • Collection vs table • Document vs row • Field vs column • schema-less vs schema-oriented • Embedded documents, linking vs Joins MongoDB Relative to RDBMS
  • 8. Features MySQL MongoDB Rich Data Model No Yes Dynamic Schema No Yes Typed Data Yes Yes Data Locality No Yes Field Updates Yes Yes Easy for Programmers No Yes Complex Transactions Yes No Auditing Yes Yes Auto-Sharding No Yes MySQL vs MongoDB
  • 9. • MongoDB does not need any pre-defined data schema • Every document could have different data! MongoDB- Schema less name: “Kartik”, color: “Red”, loc: [40.7, 73.4], Hobbies: “cycling”} {name: “Avinash”, aliases: [“Avi”]} name: “Ram”, HasHat: ”yes”} {name: “Manish”, Food: “Pasta”, height: 172, loc: [44.6, 71.3]} {name: “Rajesh, color: “blue”, birthplace: “NY”, aliases: [“Raj”, “limbo”], loc: [32.7, 63.4]}
  • 10. Web Application Framework with MongDB MongoDB Mongod process Mongo Shell JavaScript Interpreter TCP/IP Java App Code MVC MongoDB Java Driver JVM User Request Rest API TCP/IP Json
  • 11. • JSON (JavaScript Object Notation) is a lightweight data- interchange format. • It is easy for humans to read and write. • It is easy for machines to parse and generate. • It is based on a subset of the JavaScript Programming Language. • JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. • These properties make JSON an ideal data-interchange language. JSON
  • 12. • Quick Demo on use to Mongo Shell • Demonstration of how to start the Mongod process • Connecting to MongoDB via mongo • Basics commands Introduction to Mongo Shell
  • 13. • db.collection.insert() • db.collection.find()/ db.collection.findOne() • db.collection.update({string:value},{$set:{string:value}}) • db.collection.remove() CRUD
  • 14. • MongoDB is open source and there is no cost to download and use it.  • MongoDB is a general purpose database that is used for a variety of use cases. The most common use cases for MongoDB include: – Single View, – Internet of Things, – Mobile, – Real-Time Analytics, – Catalog, and – Content Management. • https://university.mongodb.com/ • http://docs.mongodb.org/manual/reference/sql- comparison/ • http://docs.mongodb.org/manual/reference/sql- aggregation-comparison/ Further Readings

Editor's Notes

  1. Applications enforce the data “schema” and integrity, much like MUMPS does in VistA