Live data from Hacker News

Basic terminology and practices related to graph databases and graph modeling

memgraph.com

21–30 of 45 posts

Re: Basic terminology and practices related to graph databases and graph modeling

#21

> Graphs, for example, can have cycles while trees can't. A cycle means that there is only one way to go to a node by following relationships from another node. Typo here, that's the opposite of what cycle means, isn't it?

Thank you for noticing! I'll investigate this error and fix it accordingly ;)

Re: Basic terminology and practices related to graph databases and graph modeling

#22
post #4

I'm glad that you liked it. If you want to see all of these things in action check out Memgraph. You, can find our repo at https://github.com/memgraph/memgraph DISCLAIMER: I'm the co-founder and CTO. Also, any feedback or suggestion will help us push more of content like this in the future!

Thanks for this intro to Graphs. Does Memgraph persist to disk or is it in-memory only? If in-memory only, do you have plans to support graphs which become larger than available memory? Thanks!

Re: Basic terminology and practices related to graph databases and graph modeling

#23

This is an awesome introduction. I wish there was a book/resource that explains when you should NOT use a graph DB( or any technology for that matter). And the pitfalls of using the wrong technology. You have so many options for technology these days with so much overlapping capabilities it’s hard to decide which tech pick for which problem space.

> I wish there was a book/resource that explains when you should NOT use a graph DB( or any technology for that matter). And the pitfalls of using the wrong technology. This is complicated by database companies, in particular, often marketing their products as suitable—or even best—for every situation, even when it's not true. Graph databases are doing this now, but we saw the same thing with document-oriented databa…

this is where experience comes in handy. some things cannot fit in blogs, it just takes years of grinding to figure, and see through the marketing bs.

Re: Basic terminology and practices related to graph databases and graph modeling

#24

This is an awesome introduction. I wish there was a book/resource that explains when you should NOT use a graph DB( or any technology for that matter). And the pitfalls of using the wrong technology. You have so many options for technology these days with so much overlapping capabilities it’s hard to decide which tech pick for which problem space.

My rule of thumb is, start designing with a relational DB and only think about graph if it becomes painful. If you don't have cyclical FKs, you probably don't have a real use for a graph DB.

Re: Basic terminology and practices related to graph databases and graph modeling

#26
post #4

I'm glad that you liked it. If you want to see all of these things in action check out Memgraph. You, can find our repo at https://github.com/memgraph/memgraph DISCLAIMER: I'm the co-founder and CTO. Also, any feedback or suggestion will help us push more of content like this in the future!

Thanks for this intro to Graphs. Does Memgraph persist to disk or is it in-memory only? If in-memory only, do you have plans to support graphs which become larger than available memory? Thanks!

Memgraph does persist data. Snapshots are taken periodically during the entire runtime of Memgraph. When a snapshot is triggered, the whole data storage is written to the disk. There are also write-ahead logs that save all database modifications that happened to a file.

Re: Basic terminology and practices related to graph databases and graph modeling

#28
post #25
post #19

This page crashed. window.analytics is undefined Try again Firefox mobile

Firefox desktop too.

Try to check the archived version at https://web.archive.org/web/20230306165643/https://memgraph....

Re: Basic terminology and practices related to graph databases and graph modeling

#29

> Graphs, for example, can have cycles while trees can't. A cycle means that there is only one way to go to a node by following relationships from another node. Typo here, that's the opposite of what cycle means, isn't it?

It’s not even the opposite. As the sibling says, this can happen in DAGs, but not in trees (both of which are cycle-free). This indicates such a confused understanding of graphs that it gives me very low confidence in the article (and the product).

The article then continues with:

> To fully utilize the power of graphs, you first need to get a basic understanding of the underlying concepts in graph theory.

Indeed. ;)

> There are four components that every graph consists of nodes, relationships, labels, and properties.

This is incorrect. A graph in the graph-theoric sense consists solely of vertices and edges [0] (nodes and relationships), no labels or properties required. Also, there's a colon missing after "of".

The writing is quite sloppy for a field that requires rigorous precision.

[0] https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)#G...

Re: Basic terminology and practices related to graph databases and graph modeling

#30
post #4

I'm glad that you liked it. If you want to see all of these things in action check out Memgraph. You, can find our repo at https://github.com/memgraph/memgraph DISCLAIMER: I'm the co-founder and CTO. Also, any feedback or suggestion will help us push more of content like this in the future!

Thanks for this intro to Graphs. Does Memgraph persist to disk or is it in-memory only? If in-memory only, do you have plans to support graphs which become larger than available memory? Thanks!

Yes, memgrpah persists data on-disk, but there is not the support for larger than memory datasets yet (but a lot can fit on a single machine). In general, our primary focus at the moment is the scale out / proper graph sharding support. The progress on that side can be tracked under the following project -> https://github.com/orgs/memgraph/projects/5

How big is your graph and do you have specific queries in mind?

Post reply on HN