I did not find the answer to this question on this site. So my question is basically this:
What is a graph-based database?
I did not find the answer to this question on this site. So my question is basically this:
What is a graph-based database?
Unlike other relational databases, the Graph-Driven Database has other forms of data persistence. NoSQL .
The idea is to create a menos genérico
model that relational model, providing a simpler modeling, seeking to achieve higher performance, both for its free implementation of costly operations as JOINs
, and for the use of graph algorithms.
Being much simpler to draw it does not need a complex design of tables to begin to include the data.
Imagine creating a student entity, just create a nó
and its propriedades
without first worrying about which relationships it will have.
The big difference lies in the representation of the relationship between the data.
We have entities called vértices
or nós
that are bound by arestas
or relacionamentos
each can save data between relationships and each relationship can have a direção
.
In the image below the vértices
are represented by the red circles and the arestas
by the arrows:
Examplesofgraph-orienteddatabases neo4j and OrientDB
The Neo4j
implements the graph model property being efficient up to the storage level. Provides full database features, including ACID
, cluster
support, making it suitable for using graph data in production.
Its official language is the Cypher that allows you to search, create and modify structures based on a graph of information and relationships.
Example command:
start programmer=(3)
match (programmer)-[:PAIRED]->(pair)
where pair.age > 30
return pair
order by pair.age
skip 5 limit 10
Links where I sought information: