Frage

Simple question about difference queries (especially performance) below:

MATCH (n { name:"X" }) RETURN n;

and

MATCH (n) WHERE n.name="X" RETURN n;
War es hilfreich?

Lösung

The first style is more readable, but limits you to testing for equality of one or more scalar (non-array) properties.

The second style is less readable, but lets you use the full power of Cypher predicates.

In terms of performance. there is really no difference.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top