Limits and differences from Neo4j
What is refused, and where an answer differs from Neo4j 5.26.
The openCypher TCK (Neo4j's conformance suite) runs against Raft DB: 3,824 of its 3,897 scenarios pass (98.1%); its temporal part, dates, times, durations and named time zones, passes 1,000 of 1,004. A corpus of 575 statements is run against Raft DB and against a real Neo4j 5.26. 572 statements give the same answer (rows compared without regard to their order). The other 3 are listed here; none is hidden.
Different answers#
| Topic | Raft DB | Neo4j |
|---|---|---|
keys(node), keys(map) | names in alphabetical order | internal order (openCypher does not define one) |
A type error that can be seen without running the statement (RETURN 'a' * 2) | Neo.ClientError.Statement.TypeError when the statement runs | Neo.ClientError.Statement.SyntaxError when it is planned |
shortestPath with the same start and end node | Neo.ClientError.Statement.ArgumentError | Neo.DatabaseError.Statement.ExecutionFailed |
id(relationship) | derived from start node, type and end node; not stable across restarts | a stored id |
Refused#
Each of these is answered with an error that says so:
- A quantifier without an upper bound (or above 64) on a quantified path pattern of several relationships.
LOAD CSV.- Text / point / full-text / vector indexes,
SHOW SERVERSand the other cluster administration commands. shortestPathwith more than one relationship type or with relationship properties.- A variable-length relationship variable (a list) that an earlier
MATCHbound, used in a pattern again. A single relationship variable can be reused. - Procedures other than the ones listed on the Cypher page (no APOC; the Graph Data Science procedures are the
gds.*ones listed there).
Limits#
- A graph must fit in memory.
- About 4.29 billion nodes per graph, and as many relationships per type.
- One writer at a time: writing statements and transactions run one after the other; readers are never blocked.
- One graph per server process; no replication of a graph yet.
- Property values: integers, floats, strings, booleans, and lists of these (no nested lists, no
nullinside a stored list).