2. MONGO DB Vs Traditional
• Overview with Traditional System
RDBMS MONGO
ROW DOCUMENT
TABLE COLLECTION
COLUMN PROPERTY
One –Many Mapoping Enbbeded-document’s
4. Collection Introduction (Contd…)
• Schema Free
• Can store :-
– {“fName" : “Anish!"}
– {“Age" : 33}
– {“pin”:898765} all three can be stored in single
collection
Within the same collection
6. Document Introduction
• Each document identified as special key “_id”
• Ordered set of keys with associated values.
• JSON structure
• E.g
– {“fName" : “Anish!"}
– {“fName" : “Anish!", “age" : 32}
– Type Sensitive these are not equal
• {“Age" : 3}
• {“Age" : “3”}
• Key always start with “_” underscore which
means it’s reserved.
7. Database Introduction
MongoDB group collection in databse.
Naming Restriction
Empty String as name
Null character
All lower case
Feature
Single Instance many database
Reserved Database name cannot be used for our
application
E.g NameSpace
Collection Name : user
Database Name : college
Namespace will become college.user