SlideShare a Scribd company logo
By
KALAISELVI.K
 What is NO SQL Data base?
 Types of NO SQL Data base.
 What is Mongo DB?
 Why Mongo DB?
 Mongo DB Architecture.
 Document (JSON) Structure.
 Differences between XML and JSON.
 Different Methods.
 Demo
 When to use Mongo DB?
 It’s Not No SQL it’s NOT ONLY SQL.
 It’s not even a replacement to RDBMS.
As compared to the good olden days we are saving more and more data.
Connection between the data is growing in which we require an architecture that
takes advantage of these two key issues.
 Key Value pair
Dynamo DB
Azure Table Storage (ATS )
 Graph database
 Document Based
Mango Db
AmazonSimple DB
Couch DB
 Column Oriented database
(#key,#value)
(Name, Tom)
(Age,25)
(Role,
Student)
(University,
CU)
[
{
"Name": "Tom",
"Age": 30,
"Role": "Student",
"University": "CU",
}
]
Student
Tom
CU
25
Masters
Ottawa Location
• Neo4j
• Infogrid
Row Id Columns
1
Name Tom
Age 25
Role Student
Bigtable(Google)
HBase
MongoDB is a cross-platform, document oriented database that provides
 High performance.
 High availability.
 Easy scalability.
MongoDB works on concept of collection and document.
 All the modern applications deals with huge data.
 Development with ease is possible with mongo DB.
 Flexibility in deployment.
 Rich Queries.
 Older database systems may not be compatible with the design.
And it’s a document oriented storage:- Data is stored in the form of JSON Style.
Architecture : -
Database
ContainerDocument
 The document has simple structure and very easy to
understand the content
 JSON is smaller, faster and lightweight compared to XML.
 For data delivery between servers and browsers, JSON is a
better choice
 Easy in parsing, processing, validating in all languages
 JSON can be mapped more easily into object oriented
system.
 [
 {
 "Name": "Tom",
 "Age": 30,
 "Role": "Student",
 "University": "CU",
}
{
 "Name": “Sam",
 "Age": 32,
 "Role": "Student",
 "University": “OU",
}
]
XML JSON
It is a markup language. It is a way of representing objects.
This is more verbose than JSON. This format uses less words.
It is used to describe the structured data. It is used to describe unstructured data which include arrays.
JavaScript functions like eval(), parse()
doesn’t work here.
When eval method is applied to JSON it returns the described
object.
Example:
<car> <company>Volkswagen</company>
<name>Vento</name> <price>800000</price> </car>
{
"company": Volkswagen,
"name": "Vento",
"price": 800000
}
 JSON is faster and easier than XML when you are using it in AJAX
web applications:
 Steps involved in exchanging data from web server to browser
involves:
Using XML
1. Fetch an XML document from web server.
2. Use the XML DOM to loop through the document.
3. Extract values and store in variables.
4. It also involves type conversions.
Using JSON
1. Fetch a JSON string.
2. Parse the JSON string using eval() or parse() JavaScript functions.
 To insert data into MongoDB
collection, you need to use
MongoDB's insert() or save() metho
d.
 The basic syntax
of insert() command is as follows
“db.COLLECTION_NAME.insert(do
cument)”
 Example: -
db.StudentRecord.insert (
{
"Name": "Tom",
"Age": 30,
"Role": "Student",
"University": "CU",
},
{
"Name": “Sam",
"Age": 22,
"Role": "Student",
"University": “OU",
}
)
 To query data from MongoDB collection, you
need to use MongoDB's find() method.
 The basic syntax of find() method is as follows −
“db.COLLECTION_NAME.find()”
 find() method will display all the documents in a
non-structured way.
 To display the results in a formatted way, you
can use pretty() method.
“db.mycol.find().pretty() “
 Example: -
db.StudentRecord.find().pretty(
)
 MongoDB's remove() method is used
to remove a document from the
collection. remove() method accepts
two parameters. One is deletion
criteria and second is justOne flag.
 deletion criteria − (Optional) deletion
criteria according to documents will be
removed.
 justOne − (Optional) if set to true or
1, then remove only one document.
 Syntax
 db.COLLECTION_NAME.remove(DE
LLETION_CRITTERIA)
Remove based on DELETION_CRITERIA
db.StudentRecord.remove({"Name": "Tom})
Remove Only One:-Removes first record
db.StudentRecord.remove(DELETION_CRITE
RIA,1)
Remove all Records
db.StudentRecord.remove()
When your requirements has these properties :
 You absolutely must store unstructured data. Say things coming from 3rd-party API
you don’t control, logs whose format may change any minute, user-entered
metadata, but you want indexes on a subset of it.
 You need to handle more reads/writes than single server can deal with and master-
slave architecture won’t work for you.
 You change your schema very often on a large dataset.
Thank you for your attention!

More Related Content

PPTX
Mongodb Introduction
Nabeel Naqeebi
 
PPTX
Java script and json
Islam Abdelzaher
 
PPTX
Intro to JSON
Mark Daniel Dacer
 
PPTX
Json
Steve Fort
 
PDF
JSON in JavaScript
Bishrul Haq
 
PDF
An Introduction to JSON JavaScript Object Notation
Ahmed Muzammil
 
PDF
Into the Wild - wilth Natural Language Processing and Text Classification - D...
Peter Grosskopf
 
Mongodb Introduction
Nabeel Naqeebi
 
Java script and json
Islam Abdelzaher
 
Intro to JSON
Mark Daniel Dacer
 
JSON in JavaScript
Bishrul Haq
 
An Introduction to JSON JavaScript Object Notation
Ahmed Muzammil
 
Into the Wild - wilth Natural Language Processing and Text Classification - D...
Peter Grosskopf
 

What's hot (6)

PPTX
Mongo db queries
ssuser6d5faa
 
PPT
Data Visualizations with D3
Doug Domeny
 
PPTX
Mongo DB 102
Abhijeet Vaikar
 
PPTX
Intro to mongodb mongouk jun2010
Skills Matter
 
PDF
Full metal mongo
Israel Gutiérrez
 
PPT
Top schools in noida
Edhole.com
 
Mongo db queries
ssuser6d5faa
 
Data Visualizations with D3
Doug Domeny
 
Mongo DB 102
Abhijeet Vaikar
 
Intro to mongodb mongouk jun2010
Skills Matter
 
Full metal mongo
Israel Gutiérrez
 
Top schools in noida
Edhole.com
 
Ad

Similar to Mongodb (20)

PPTX
29thMarchMongodb and its history features.pptx
ajajkhan16
 
PPTX
mongodb introduction11111111111111111111
VADAPALLYPRAVEENKUMA1
 
PDF
3-Mongodb and Mapreduce Programming.pdf
MarianJRuben
 
PPTX
UNIT-1 MongoDB.pptx
DharaDarji5
 
PPTX
Introduction to MongoDB
Hossein Boustani
 
PPTX
Mongo db
AbhiKhurana8
 
PPTX
Mongodb - NoSql Database
Prashant Gupta
 
PPTX
No SQL DB lecture showing structure and syntax
Georges Abboudeh
 
PPT
Tech Gupshup Meetup On MongoDB - 24/06/2016
Mukesh Tilokani
 
PPTX
Mongo DB
Er. Shiva K. Shrestha
 
PDF
Getting Started with MongoDB
Michael Redlich
 
PPTX
MongoDB Knowledge share
Mr Kyaing
 
PDF
MongoDB NoSQL database a deep dive -MyWhitePaper
Rajesh Kumar
 
PPTX
Mongo db
Ramakrishna kapa
 
PPTX
Mongo db nosql (1)
Bhavesh Sarvaiya
 
PPTX
lecture_34e.pptx
janibashashaik25
 
PPTX
Introduction to MongoDB
Cali Mongo
 
PPTX
Introduction to MongoDB
S.Shayan Daneshvar
 
PDF
MongoDB
techwhizbang
 
PDF
Getting Started with MongoDB (TCF ITPC 2014)
Michael Redlich
 
29thMarchMongodb and its history features.pptx
ajajkhan16
 
mongodb introduction11111111111111111111
VADAPALLYPRAVEENKUMA1
 
3-Mongodb and Mapreduce Programming.pdf
MarianJRuben
 
UNIT-1 MongoDB.pptx
DharaDarji5
 
Introduction to MongoDB
Hossein Boustani
 
Mongo db
AbhiKhurana8
 
Mongodb - NoSql Database
Prashant Gupta
 
No SQL DB lecture showing structure and syntax
Georges Abboudeh
 
Tech Gupshup Meetup On MongoDB - 24/06/2016
Mukesh Tilokani
 
Getting Started with MongoDB
Michael Redlich
 
MongoDB Knowledge share
Mr Kyaing
 
MongoDB NoSQL database a deep dive -MyWhitePaper
Rajesh Kumar
 
Mongo db nosql (1)
Bhavesh Sarvaiya
 
lecture_34e.pptx
janibashashaik25
 
Introduction to MongoDB
Cali Mongo
 
Introduction to MongoDB
S.Shayan Daneshvar
 
MongoDB
techwhizbang
 
Getting Started with MongoDB (TCF ITPC 2014)
Michael Redlich
 
Ad

Recently uploaded (20)

PPTX
quantum computing transition from classical mechanics.pptx
gvlbcy
 
PPTX
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PPTX
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PDF
All chapters of Strength of materials.ppt
girmabiniyam1234
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PPTX
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
PDF
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PPTX
Online Cab Booking and Management System.pptx
diptipaneri80
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
Zero Carbon Building Performance standard
BassemOsman1
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PPTX
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
PDF
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 
quantum computing transition from classical mechanics.pptx
gvlbcy
 
Civil Engineering Practices_BY Sh.JP Mishra 23.09.pptx
bineetmishra1990
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
MT Chapter 1.pptx- Magnetic particle testing
ABCAnyBodyCanRelax
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
All chapters of Strength of materials.ppt
girmabiniyam1234
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
MULTI LEVEL DATA TRACKING USING COOJA.pptx
dollysharma12ab
 
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
Online Cab Booking and Management System.pptx
diptipaneri80
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
Zero Carbon Building Performance standard
BassemOsman1
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
Victory Precisions_Supplier Profile.pptx
victoryprecisions199
 
CAD-CAM U-1 Combined Notes_57761226_2025_04_22_14_40.pdf
shailendrapratap2002
 

Mongodb

  • 2.  What is NO SQL Data base?  Types of NO SQL Data base.  What is Mongo DB?  Why Mongo DB?  Mongo DB Architecture.  Document (JSON) Structure.  Differences between XML and JSON.  Different Methods.  Demo  When to use Mongo DB?
  • 3.  It’s Not No SQL it’s NOT ONLY SQL.  It’s not even a replacement to RDBMS. As compared to the good olden days we are saving more and more data. Connection between the data is growing in which we require an architecture that takes advantage of these two key issues.
  • 4.  Key Value pair Dynamo DB Azure Table Storage (ATS )  Graph database  Document Based Mango Db AmazonSimple DB Couch DB  Column Oriented database (#key,#value) (Name, Tom) (Age,25) (Role, Student) (University, CU) [ { "Name": "Tom", "Age": 30, "Role": "Student", "University": "CU", } ] Student Tom CU 25 Masters Ottawa Location • Neo4j • Infogrid Row Id Columns 1 Name Tom Age 25 Role Student Bigtable(Google) HBase
  • 5. MongoDB is a cross-platform, document oriented database that provides  High performance.  High availability.  Easy scalability. MongoDB works on concept of collection and document.
  • 6.  All the modern applications deals with huge data.  Development with ease is possible with mongo DB.  Flexibility in deployment.  Rich Queries.  Older database systems may not be compatible with the design. And it’s a document oriented storage:- Data is stored in the form of JSON Style.
  • 8.  The document has simple structure and very easy to understand the content  JSON is smaller, faster and lightweight compared to XML.  For data delivery between servers and browsers, JSON is a better choice  Easy in parsing, processing, validating in all languages  JSON can be mapped more easily into object oriented system.  [  {  "Name": "Tom",  "Age": 30,  "Role": "Student",  "University": "CU", } {  "Name": “Sam",  "Age": 32,  "Role": "Student",  "University": “OU", } ]
  • 9. XML JSON It is a markup language. It is a way of representing objects. This is more verbose than JSON. This format uses less words. It is used to describe the structured data. It is used to describe unstructured data which include arrays. JavaScript functions like eval(), parse() doesn’t work here. When eval method is applied to JSON it returns the described object. Example: <car> <company>Volkswagen</company> <name>Vento</name> <price>800000</price> </car> { "company": Volkswagen, "name": "Vento", "price": 800000 }
  • 10.  JSON is faster and easier than XML when you are using it in AJAX web applications:  Steps involved in exchanging data from web server to browser involves: Using XML 1. Fetch an XML document from web server. 2. Use the XML DOM to loop through the document. 3. Extract values and store in variables. 4. It also involves type conversions. Using JSON 1. Fetch a JSON string. 2. Parse the JSON string using eval() or parse() JavaScript functions.
  • 11.  To insert data into MongoDB collection, you need to use MongoDB's insert() or save() metho d.  The basic syntax of insert() command is as follows “db.COLLECTION_NAME.insert(do cument)”  Example: - db.StudentRecord.insert ( { "Name": "Tom", "Age": 30, "Role": "Student", "University": "CU", }, { "Name": “Sam", "Age": 22, "Role": "Student", "University": “OU", } )
  • 12.  To query data from MongoDB collection, you need to use MongoDB's find() method.  The basic syntax of find() method is as follows − “db.COLLECTION_NAME.find()”  find() method will display all the documents in a non-structured way.  To display the results in a formatted way, you can use pretty() method. “db.mycol.find().pretty() “  Example: - db.StudentRecord.find().pretty( )
  • 13.  MongoDB's remove() method is used to remove a document from the collection. remove() method accepts two parameters. One is deletion criteria and second is justOne flag.  deletion criteria − (Optional) deletion criteria according to documents will be removed.  justOne − (Optional) if set to true or 1, then remove only one document.  Syntax  db.COLLECTION_NAME.remove(DE LLETION_CRITTERIA) Remove based on DELETION_CRITERIA db.StudentRecord.remove({"Name": "Tom}) Remove Only One:-Removes first record db.StudentRecord.remove(DELETION_CRITE RIA,1) Remove all Records db.StudentRecord.remove()
  • 14. When your requirements has these properties :  You absolutely must store unstructured data. Say things coming from 3rd-party API you don’t control, logs whose format may change any minute, user-entered metadata, but you want indexes on a subset of it.  You need to handle more reads/writes than single server can deal with and master- slave architecture won’t work for you.  You change your schema very often on a large dataset.
  • 15. Thank you for your attention!