TETRAbase · For Neo4j users
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
APOC plugin installed for the export.cypher-shell, which ships with Neo4j, to replay the export.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;
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' });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
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;
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
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
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.
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.
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
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
If your workload is mostly writes, measure it on both engines first.
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.
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.
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.
Bring a Neo4j workload. We run it on TETRAbase and send you the results.