Mongo db datatypes

77 views

Published on

Visit
http://www.zariga.com
http://www.youtube.com/user/zarigatongy

Published in: Entertainment & Humor
1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

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

No notes for slide

Mongo db datatypes

  1. 1. MongoDBDataTypeszariga.com
  2. 2. DataType• Null Datatype : ,“mName”:null-• String : ,“fName”:”anish”-• Boolean : ,“married”:false}• Date : ,“accountOpeningDate”: new Date()-• Array : ,“posts” : *“good”,”bad”,”average”+-• embeddedDocument : ,“publisher" : ,“name" :“address"--• BSON (Covered Later)• ObjectId• More detailedhttp://api.mongodb.org/perl/current/MongoDB/DataTypes.htmlzariga.com
  3. 3. Most important the AutoGeneratedObject ID DataType• Size 12 bytes• First 4 refer to timeStamp (513c60fa)• Next 3 byte : hash of the hostname (b2080f)• Next 2 bytes taken from the PID (8932)• Last three byte is increment counter (86d0a4)Example> db.user.find()• { "_id" : ObjectId("513c60fab2080f893286d0a4"),"lName" : "anish", "date" : ISODate("2013-03-10T10:31:18.632Z") }zariga.com
  4. 4. •Thanks for Watchingfeedbackappreciated…………………………zariga.com

×