This content originally appeared on DEV Community and was authored by Zainab-Saad
Graph database uses nodes/vertices to store entities and edges to store relationships between these entities. Most of the value of graph databases are derived from these relationships. These relationships represent complex interconnected relations between the nodes.
Examples of graph databases include Neo4j. Examples of relational databases are postgreSQL, MySQL, Oracle etc.
We use graph databases because it provides:
Flexibility
Graph databases are schema-free and thus any change in the properties (attributes) of a node or edge does not require the entire schema to be altered. This is quite unlike relational databases such as postgreSQL where if one record has a different set of attributes, you need to change the entire schema of the relation/table.Agility
Graph databases being time-efficient are a great choice in agile development where there is a need for efficient data storage and management under a time constraint.
Size vs Complexity Relation
There is a size vs complexity relation between the graph and relational database. It is a fact that the graph databases perform the best when the complexity of relationships between the entities is to be scaled whereas relational databases perform best when size of the database needs to be scaled.
References
This content originally appeared on DEV Community and was authored by Zainab-Saad
Zainab-Saad | Sciencx (2023-03-19T17:53:32+00:00) Why use graph database?. Retrieved from https://www.scien.cx/2023/03/19/why-use-graph-database/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.