Skip to main content
Version: 🚀 Next

Neo4j Config & Schema Init

After successfully importing or restoring the database, you need to apply a few configurations before using it. This page explains those necessary steps.

DBMS Configuration​

Given the scale of the Bitcoin graph (billions of nodes and edges), the Neo4j Database Management System (DBMS) will likely run out of memory with the default configuration, potentially failing even during startup.

Therefore, you need to update and increase the default memory settings.

  1. Open neo4j.conf. You may follow this documentation on locating the file depending on the Neo4j deployment you are using.

  2. Make the changes listed below. Note that the values provided are merely examples; you should adjust them based on your system's available memory.

    server.memory.heap.initial_size=4G
    server.memory.heap.max_size=16G
    server.memory.pagecache.size=16G

Schema Application​

To improve query performance (e.g., during neighborhood sampling), we define database constraints, such as uniqueness constraints, which index commonly used properties.

Take the following steps to apply these constraints to your database:

  1. Start the Neo4j database service.

  2. Run the post-process subcommand.

    .\eba.exe bitcoin post-process