Wednesday, 18 February 2015

BSON

BSON stands for Binary script object notation. MongoDB represents data in BSON format. BSON format used by mongoDB follows the specification provided by http://bsonspec.org/ (Have a look at this site for detailed view like what data types BSON supports etc.,).

 

Down the line, when you interact with MongoDB using json, MongoDB drivers convert the JSON content into BSON format and store.




Why BSON?

a.   BSON is efficient than JSON while storing and retrieving the information

b.   Consume less space than json

c.    BSON support additional data types. For example, ObjectID is not a valid data type in JSON. When you insert a document into MongoDB, it automatically assigns a unique id to it. The type of this id is ObjectId.


 
Prevoius                                                 Next                                                 Home

No comments:

Post a Comment