4 ms·
This is the kind of thing I thought graph databases were good at. postgres extensions for this would be very interesting.
by gnarbarian 5y ago
This is the kind of thing I thought graph databases were good at. postgres extensions for this would be very interesting.
- setr 5y agoMost datasets have relationships forming a graph, but few need to be analyzed as a graph. Graph databases specialize for the latter usecase, with large datasets. But you could always traverse graphs with recursive SQL — it’s just less pleasant, and perhaps less performant — but often that’s all you need (and often people confuse having a graph relationship with needing a graph-specialized database)
- zozbot234 5y agoPostgres can handle a lot of generic 'graph' use cases. Unless you have very specialized needs, focusing on complex algorithms and very big network data, it's not at all clear that you'll need more than that.
- makr17 5y agoAnd even then, it really depends on what you're trying to do. My use case a few years ago was such that _every_ dedicated graph engine I tried would just OOM on the test set of ~10M nodes, which I attributed to insufficient pruning. Postgres was able to handle it, and still worked on the production set of ~1.5B nodes. The SQL took some tuning, and wasn't _pretty_, but it did _work_ where nothing else did...