匹配和与何处匹配之间的区别 [英] Difference between match and match with where

查看:127
本文介绍了匹配和与何处匹配之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关以下差异查询(特别是性能)的简单问题:

Simple question about difference queries (especially performance) below:

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

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.

第二种样式可读性较差,但可让您充分利用Cypher谓词的全部功能.

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.

这篇关于匹配和与何处匹配之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆