Hold all Neo4j graphics memory in RAM?

I am studying graph databases for a working draft. Since our data is strongly related, it seems that the graph database option will be convenient for us.

One of the first DB graph options I came across was neo4j, and for the most part I like it. However, I have one question about neo4j that I cannot find the answer to: Can I get neo4j to store the entire graph in memory? If so, how to set it up?

The application I'm developing should be lightning fast. I can't wait for db to go to disk to get the data I'm looking for. I need the whole database to be stored in memory to reduce query time.

Is there a way to hold all the neo4j DB memory?

Thanks!

+6
source share
2 answers

Neo4j is not intended to store the entire chart in main memory. This leaves you with a few options. You can either play around with the configuration options (as Jasper Blues has already explained in more detail) OR you can configure Neo4j to use RAMDisk.

The first option will probably not give you maximum performance, since only the cache is stored in memory.

The problem with the second approach is that everything is in memory, which means that the system is not durable and the recordings are inefficient.

Memgraph ( : ). Memgraph - openCypher Bolt. . , .

+7

, , Neo4j , . .

Manual .

- dbms.memory.pagecache.size neo4j.conf. , .

, .. dbms.memory.heap.initial_size dbms.memory.heap.max_size . , .

Neo4j, , .

Memory configuration

Graph Connect -, 2016, Neo4j CTO, , , . , . , , .

+6

All Articles