Neo4j: is it a database in memory?

I worked with an earlier version of Neo4j ie 1.8.x. both built-in and REST mode . but I never heard him store data in memory. I recently went through a Neo4j page that talks about 3 different types of access to neo4j:

  • neo4j server, i.e. REST mode
  • built-in mode
  • in mind

How does Neo4J work with data in memory ? and when was it implemented? Was it from an older version, i.e. 1.8.x? or just added to a newer version? any additional configuration changes needed such as Spring data neo4j?

My results
I heard about a database in memory that they handle most of the task in RAM, i.e. RAM. eg. VoltDB and Redis . (to optimize performance).

+5
source share
1 answer

Neo4j has a stripped down version called ImpermanentGraphDatabase. This is for testing only. For instance. when you develop an application with a schedule enabled, your hardware tests can use it. It is not recommended to use ImpermanentGraphDatabase for real life scenarios with large amounts of data.

To use ImpermanentGraphDatabase, you usually start with TestGraphDatabaseFactory , this one is in the neo4j-kernel jar with the tests classifier, see the reference guide .

Regardless of whether you use Neo4j in the built-in or server mode, several levels of caches are used to make your requests as fast as possible, for more details see the reference manual .

To summarize: Neo4j is an ACID-compatible transactional database that fetches from your provided RAM by caching. But I will not assume that this is a database in memory.

+8
source

Source: https://habr.com/ru/post/1201057/


All Articles