What is a graph-based database?

Asked

Viewed 8,163 times

18

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 answer

13

Different from relational databases Graph-oriented database has other forms of data persistence Nosql.

The idea is to create a model menos genérico that the relational model, providing a simpler modeling, seeking greater performance, both by its implementation free of costly operations and JOINs, how much by the use of graph algorithms.

Being much simpler to draw it doesn’t need a complex table design to start including the data.

Imagine yourself creating a student entity, just create a and its propriedades without worrying initially 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 which are linked by arestas or relacionamentos each one 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:

Exemplo

Examples of graph-oriented databases neo4j and Orientdb

The Neo4j implements the graph model property being efficient up to the storage level. Provides complete database features, including ACID, support of cluster, making it suitable to use graph data in production.

Its official language is Cypher that allows you to search, create and modify structures based on an information graph and relationships.

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 for information:

https://medium.com/accendis-tech/uma-gentil-introdu%C3%A7%C3%A3o-to-use-of-database-oriented-to-graphs-with-neo4j-ca148df2d352

http://nicholasess.com.br/neo4j-2/bem-vindo-ao-neo4j/

https://imasters.com.br/banco-data/graphdb-series-que-e-um-dataco-data/? trace=1519021197&source=single

http://bcc.ime.usp.br/tccs/2016/taksqth/downloads/poster.pdf

http://orientdb.com/orientdb/

https://en.wikipedia.org/wiki/Cypher_Query_Language

Browser other questions tagged

You are not signed in. Login or sign up in order to post.