Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When is a graph database (like Neo4j) not a good use? [closed]

There is a lot of articles on the web supporting the trend to move to a graph database like Neo4j... but I can't find much against them.

When would a graph database not be the best solution?

Any links to articles that compare graphs, nosql, and relational databases would be great.

like image 838
Milk Man Avatar asked Dec 20 '13 20:12

Milk Man


People also ask

What are graph databases not good for?

Graph databases are not as useful for operational use cases because they are not efficient at processing high volumes of transactions and they are not good at handling queries that span the entire database.

What are the disadvantages of Neo4j?

Neo4j has some upper bound limit for the graph size and can support tens of billions of nodes, properties, and relationships in a single graph. No security is provided at the data level and there is no data encryption. Security auditing is not available in Neo4j.

When should use Neo4j?

Example #2: Using Neo4j to devise promotional offers To increase conversion rates, we should offer alternative products to our customers. For example, if a customer shows interest in a certain product but doesn't buy it, we can create a promotional offer that contains alternative products.


1 Answers

Currently I would not use Neo4j in a high volume write situation. The writes are still limited to a single machine, so you're restricted to a single machine's throughput, until they figure out some way of sharding (which is, by the way, in the works). In high volume write situations, you would probably look at some other store like Cassandra or MongoDB, and sacrifice other benefits a graph database gives you.

Another thing I would not currently use Neo4j for is full-text search, although it does have some built-in facility (as it uses Lucene for indexing under the hood), it is limited in scope and difficult to use from the latest Cypher. I understand that this is going to be improving rapidly in the next couple of releases, and look forward to that. Something like ElasticSearch or Solr would do a better job for FTS-related things.

Contrary to popular belief, tabular data is often well-fitted to the graph, unless you really have very denormalized data, like log records.

The good news is you can take advantage of many of these things together, picking the best tool for the job, and implement a polyglot persistence solution to answer your questions the best way possible.

like image 77
Eve Freeman Avatar answered Oct 02 '22 09:10

Eve Freeman