Mongo db introduction

79 views
66 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
79
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Mongo db introduction

  1. 1. MONGO DB Introduction• Two key Entity• Collection• Document
  2. 2. MONGO DB Vs Traditional• Overview with Traditional SystemRDBMS MONGOROW DOCUMENTTABLE COLLECTIONCOLUMN PROPERTYOne –Many Mapoping Enbbeded-document’s
  3. 3. Collection Introduction• Collection can be though as a table inRDBMS• Mongo DB refer collection as•group of document
  4. 4. Collection Introduction (Contd…)• Schema Free• Can store :-– {“fName" : “Anish!"}– {“Age" : 33}– {“pin”:898765} all three can be stored in singlecollectionWithin the same collection
  5. 5. Collection Introduction (Contd…) Collection Identified by name Restriction empty string ("") Null character Reserved Names
  6. 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 whichmeans it’s reserved.
  7. 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 ourapplication E.g NameSpace Collection Name : user Database Name : college Namespace will become college.user
  8. 8. Thank you forwatching feedbackappreciated……………………..

×