What is a graph-based database?
I did not find on this site the answer to this question. So my question is basically this:
What is a graph-based database?
1 answers
Different from relational databases the graph-oriented database has other forms of data persistence the NoSQL .
The idea is to create a model menos genérico
that the relational model, providing a simpler modeling, seeking to obtain greater performance, both for its implementation free 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 start including the data.
Imagine yourself creating a student entity, just create a nó
and its propriedades
without initially worrying about what relationships you will have.
The big difference is in the representation of the relationship between the data.
We have the entities called vértices
or nós
that are connected by arestas
or relacionamentos
each being able to save data between the relationships and each relationship can have a direção
.
In the image below vértices
are represented by red circles and arestas
by Arrows:
Examples of graph-oriented databases neo4j and OrientDB
Neo4j
implements the graph model property by being efficient up to the storage level. Provides full database features including ACID
, support for cluster
, making it suitable for using graph data in production.
Its official language is Cypher which allows you to search, create and modify structures based on an information and relationship graph.
Command example:
start programmer=(3)
match (programmer)-[:PAIRED]->(pair)
where pair.age > 30
return pair
order by pair.age
skip 5 limit 10
Links where I searched Information:
Http://nicholasess.com.br/neo4j-2/bem-vindo-ao-neo4j /
Http://bcc.ime.usp.br/tccs/2016/taksqth/downloads/poster.pdf