简体   繁体   中英

Difference between match and match with where

Simple question about difference queries (especially performance) below:

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

and

MATCH (n) WHERE n.name="X" RETURN n;

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM