Explain How a document database differs from a relational
database. Describe what are collections, documents, and BSON (How
it differs from JSON).
Ans. The (RDS)relational database system we have to define a schema before adding records to a database. In a document database it contains documents, which are records that describe the data in the document, as well as the actual data.
Relational database stores there data in seperate table by the user(programmer).
In Document databases every stored object can be different from every other.
* The document is the unit of storing data in mongoDB database. Collection stores the number of documents.
BSON is different from JSON
JSON stands for javascript object notation where as BSON stands for binary javascript object notation. JSON data contains its data in basic JSON format where the BSON gives some more data types over JSON format.
Get Answers For Free
Most questions answered within 1 hours.