Document Databases in NoSQL

In this article, we will see about the Document Data Model of NoSQL and apart from Examples, Advantages, Disadvantages, and Applications of the document data model.

Document Data Model:

A Document Data Model is a lot different than other data models because it stores data in JSON, BSON, or XML documents. in this data model, we can move documents under one document and apart from this, any particular elements can be indexed to run queries faster. Often documents are stored and retrieved in such a way that it becomes close to the data objects which are used in many applications which means very less translations are required to use data in applications. JSON is a native language that is often used to store and query data too.

So in the document data model, each document has a key-value pair below is an example for the same.

Working of Document Data Model:

This is a data model which works as a semi-structured data model in which the records and data associated with them are stored in a single document which means this data model is not completely unstructured. The main thing is that data here is stored in a document.

Features:

Examples of Document Data Models :

Advantages:

Disadvantages:

Applications of Document Data Model :