Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating multiple databases on one server using Neo4j

Tags:

database

neo4j

How do you create multiple databases on one server using neo4j? I have multiple clients, and I want to separate all client information into different database to avoid data leaks.

like image 589
Kelly Watson Avatar asked Sep 04 '14 07:09

Kelly Watson


People also ask

How many databases can be created in Neo4j?

A default installation of Neo4j 4.4 contains two databases: system - the system database, containing metadata on the DBMS and security configuration. neo4j - the default database, a single database for user data.

How many databases and projects can you create in Neo4j desktop?

In a Neo4j Desktop project, you can create one or more DBMSs.

How many databases can the client access in the single transaction Neo4j?

Neo4j offers the ability to work with multiple databases within the same DBMS. For Community Edition, this is limited to one user database, plus the system database. From a driver API perspective, sessions have a DBMS scope, and the default database for a session can be selected on session construction.


2 Answers

You need to have multiple Neo4j installations with a different port configurations in conf/neo4j.properties and conf/neo4j-server.properties.

Alternatively you might use some virtualization or container tool like http//docker.io for a more sophisticated approach.

like image 142
Stefan Armbruster Avatar answered Oct 04 '22 13:10

Stefan Armbruster


or add a special label to each node for a client, e.g. :ClientName. or create a root node for each clients database, and always begin the querying at the first node.

in neo4j db, you can have separate subgraphs. if you do programm your code good, there should be no reason to have such leaks.

like image 21
ulkas Avatar answered Oct 04 '22 12:10

ulkas