小编drg*_*uss的帖子

Neo4j/Cypher简单查询索引扫描不起作用

我有简单的节点User,其UserId属性具有唯一的约束设置.

我开始分析我的查询并注意到每次我User通过UserIdNodeByLabelScan 执行匹配节点而不是NodeUniqueIndexSeek.

我在下面尝试过最简单的比赛.

match (u:User {UserId:"id"}) return u 和索引扫描不起作用.

如果我明确指定索引一切正常.

match (u:User {UserId:"id"}) using index u:User(UserId) return u

任何人都可以澄清为什么会这样.

neo4j graph-databases cypher

2
推荐指数
1
解决办法
130
查看次数

标签 统计

cypher ×1

graph-databases ×1

neo4j ×1