In-memory Neo4j server for testing using the ImpermanentGraphDatabase
Only for Testing
Uses the Neo4j ImpermanentGraphDatabase as Database for your Neo4j server. So should not access disk but needs more RAM as it writes / reads all the data from an in-memory filesystem abstraction.
Might be faster to start and incur less transactional overhead.
To deploy run copy.sh /path/to/neo4j-3.1.1
to build the latest version and add this bootstrap file into that server.
or unzip the provided inmemory-server-3.1.zip in your $NEO4J_HOME/lib
directory.
Content of inmemory-server-3.1.zip
:
And restart your server, it will not keep content across restarts.
and there is an REST endpoint to delete the db content while the server is running.
curl -XDELETE http://localhost:7474/test/clean
The in-memory server will be picked up automatically.
Starts / Restarts should also be faster.