Graph queries

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#

TopicRaft DBNeo4j
keys(node), keys(map)names in alphabetical orderinternal 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 runsNeo.ClientError.Statement.SyntaxError when it is planned
shortestPath with the same start and end nodeNeo.ClientError.Statement.ArgumentErrorNeo.DatabaseError.Statement.ExecutionFailed
id(relationship)derived from start node, type and end node; not stable across restartsa 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 SERVERS and the other cluster administration commands.
  • shortestPath with more than one relationship type or with relationship properties.
  • A variable-length relationship variable (a list) that an earlier MATCH bound, 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 null inside a stored list).