Open In App

Graph Based Data Model in NoSQL

Graph Based Data Model in NoSQL is a type of Data Model which tries to focus on building the relationship between data elements. As the name suggests Graph-Based Data Model, each element here is stored as a node, and the association between these elements is often known as Links. Association is stored directly as these are the first-class elements of the data model. These data models give us a conceptual view of the data.

These are the data models which are based on topographical network structure. Obviously, in graph theory, we have terms like Nodes, edges, and properties, let’s see what it means here in the Graph-Based data model.



The below image represents Nodes with properties from relationships represented by edges.

 

Working of Graph Data Model : 

In these data models, the nodes which are connected together are connected physically and the physical connection among them is also taken as a piece of data. Connecting data in this way becomes easy to query a relationship. This data model reads the relationship from storage directly instead of calculating and querying the connection steps. Like many different NoSQL databases these data models don’t have any schema as it is important because schema makes the model well and good and easy to edit.



Examples of Graph Data Models :

Advantages of Graph Data Model :

Disadvantages of Graph Data Model :

Applications of Graph Data Model:

Article Tags :