TETRAbase · For Neo4j users

Switchingfrom Neo4j

A guide to moving a graph from Neo4j to TETRAbase. TETRAbase accepts openCypher over Bolt, so Neo4j drivers connect to it, and the move uses APOC and cypher-shell. On the 21 LDBC Interactive queries TETRAbase was 87x faster than Neo4j 5.26 and used 19x less server CPU.

01 · Migration steps

Moving a graph from Neo4j

You need

  • The Bolt address and credentials of a TETRAbase deployment. TETRAbase runs in your own infrastructure. to set one up.
  • Access to the Neo4j instance, with the APOC plugin installed for the export.
  • cypher-shell, which ships with Neo4j, to replay the export.
  1. Record what you have

    Take node and relationship counts from Neo4j, to check the import against. Search your application's queries for CALL apoc., CALL db. and CALL gds. and list the procedures it uses (section 05).

    MATCH (n) RETURN count(n) AS nodes;
    MATCH ()-->() RETURN count(*) AS relationships;
  2. Export from Neo4j

    Export the graph as an openCypher script with APOC. The export includes schema statements. Delete the index statements and keep the unique constraints.

    CALL apoc.export.cypher.all('tetra-migration.cypher', { format: 'cypher-shell' });
  3. Load into TETRAbase

    Replay the script over Bolt with cypher-shell. Load a sample of the graph first: not every statement APOC writes has been checked against TETRAbase. For a large graph, time the node section of the sample before loading the rest. APOC creates nodes in UNWIND … CREATE batches, and Neo4j ran block node creation faster than TETRAbase in the benchmark (section 05).

    cypher-shell -a bolt://<tetrabase-host>:<port> \
      -u <user> -p <password> \
      -f tetra-migration.cypher
  4. Validate

    Run the count queries from step 1 on TETRAbase and compare. Then run your application's main queries on both engines and compare the results. Keep Neo4j running until they match.

    MATCH (n) RETURN count(n) AS nodes;
    MATCH ()-->() RETURN count(*) AS relationships;
  5. Point the application at TETRAbase

    Replace the Neo4j address and credentials in the application's configuration with TETRAbase's. The driver stays the same.

    # The same Bolt driver, with TETRAbase's connection details:
    NEO4J_URI=bolt://<tetrabase-host>:<port>
    NEO4J_USERNAME=<user>
    NEO4J_PASSWORD=<password>

02 · Benchmark results

TETRAbase against Neo4j 5.26

  • 87x

    Faster on the LDBC queries

    The 21 LDBC Interactive queries at SF10, 177 million edges: 1.30 s against 113.7 s in total

  • 19x

    Less CPU

    Server CPU for one run of the same 21 queries at SF10: 6,522 ms against 121,665 ms

  • 34.4x

    More reads a second

    8 concurrent LDBC readers on the SF1 graph: 434.5 a second against 12.6

  • 5.8x

    Smaller store

    After 18 OpenCypher write workloads at 200,000 rows: 744 MB against 4,308 MB

  • 2.2x

    Less memory at peak

    The largest server memory during the 21 queries at SF10: 12,931 MB against 28,420 MB

  • 1.78B

    Edges, all 21 queries performed

    TETRAbase alone at SF100 in 8.4 s, less than Neo4j takes at SF1 on 17 million edges (11.6 s)

One server, an AMD EPYC 7502P with 32 cores, clients on the same machine. Both engines answer the same unmodified LDBC SNB Interactive queries with the same parameters, over Bolt. Neo4j 5.26.0 Community runs with the LDBC reference setup of 9 constraints and 8 indexes and memory sized per graph size; TETRAbase runs with no index for any read, default memory and its store encrypted at rest. Both confirm a write only after it is on disk. Neo4j was measured on the same server on 2026-09-24 (reads) and 2026-10-26 (writes) and its results stored; it ran SF1 to SF10 for reads, 200,000 rows for writes and SF1 for reads and writes together. Each figure is one run, and every latency a median.

03 · After the switch

  • Indexes

    Do not recreate your Neo4j indexes. TETRAbase uses no index for any read: in the benchmark Neo4j ran with the LDBC reference setup of 9 constraints and 8 indexes, and TETRAbase ran with none. Unique constraints are supported.

  • Memory

    There is no page cache or heap size to configure per graph. TETRAbase ran every graph size in the benchmark on its default memory settings. Neo4j's memory was sized for each graph.

  • Encryption and SQL

    The store is always encrypted at rest. There is no unencrypted mode. TETRAbase also answers SQL over the PostgreSQL protocol, from the same store as the graph.

04 · Cost

TETRAbase's infrastructure costs 22% of Neo4j's over three years.

The report's cost model prices three years of a graph that grows by 500 GB a month, as Neo4j stores it: disk, backup, memory and compute at list rates. No licence is counted on either side.

  • Disk, 41% of Neo4j's total

    TETRAbase stores the same graph 4.5x smaller: 78% less.

  • Memory and compute, 34% of Neo4j's total

    2% of a much smaller store, and 1/19th of the CPU: 79% less.

  • Backups, 25% of Neo4j's total

    A smaller store means smaller snapshots and faster restores: 78% less.

An estimate, not a quotation. The prices and the cost month by month are in By the Numbers (57 pages, PDF).

05 · Check before you switch

Where Neo4j was faster, and what the report does not cover

  • Writes

    If your workload is mostly writes, measure it on both engines first.

    • Writes in blocks and over key ranges: at 32 clients Neo4j wrote 15 times as many rows a second creating nodes in blocks (1.66M against 114.1k), 7.4 times as many creating relationships in blocks (555.5k against 75.3k), and 13 times as many on range updates (21.86M against 1.64M).
    • 11 of the 18 write workloads were faster on Neo4j at 32 clients, and 15 of 18 at 1 client.
    • With 8 readers and 16 writers running together, Neo4j committed 8,844 writes a second against 7,884, and its total read time rose 7.8% against TETRAbase's 145.0%.
  • Your own queries

    The 21 LDBC Interactive reference queries ran unchanged on both engines and returned the same row counts. No other queries have been compared. Run yours on both engines before you move.

  • Procedures

    Neo4j-specific procedures (apoc.*, db.* and Graph Data Science) are not part of the benchmark. Some may behave differently or be unavailable. Check each one your application calls.

  • Clustering and Neo4j editions

    Every measurement ran on a single server against Neo4j Community 5.26. Clustering, replication, Neo4j Enterprise and Aura are not covered by the report. If you run a cluster, raise it on the call.

Test it on your own graph.

Bring a Neo4j workload. We run it on TETRAbase and send you the results.