All technological notes.
graph
Graph database
Nodes
properties (key-value pairs).Relationships
properties, which can further clarify the relationshipProperties
Labels
| Graph Database | RDBMS |
|---|---|
| data is stored in graphs. | data is stored in tables. |
| there are nodes | there are rows |
| there are properties and their values. | there are columns and data. |
| the connected nodes are defined by relationships | constraints are used instead of that. |
| traversal is used instead of join. | join is used instead of traversal. |
Vs Relational databases
Relational databases store highly structured data which have several records storing the same type of data
graph databases store relationships and connections as first-class entities.relationshipsrelationship propertiesNoSQL databases
Relational database: It is represented in tabular form so it is best for calculating the income.Key-Value Store: It is best for building a shopping cart.NoSQL databases: It is stored as a document so, it is best for storing structured product information.GraphDB: It follows a graph structure. It is best for describing how a user got from point A to point B.Types:
Document Stores
Key-Value Stores
Columnar Databases
Graph Databases