在 Neo4J 中,当索引已经存在时启动 CREATE INDEX ON [英] Launching a CREATE INDEX ON when the index already exists, in Neo4J
本文介绍了在 Neo4J 中,当索引已经存在时启动 CREATE INDEX ON的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果您在已经具有此索引的 Neo4J 数据库上重放 CREATE INDEX ON 命令会发生什么.Neo4J 会直接忽略该命令吗?
What happens if you replay a CREATE INDEX ON command on a Neo4J database that already has this index. Does Neo4J simply ignore that command?
推荐答案
第一次执行时,Neo4j 会:
The first time you will execute it, Neo4j will :
- 创建索引
- 创建一个后台作业来填充它
- 作为查询统计信息,告诉您索引已创建
在第二次尝试时,您将:
At the second attempt, you will have :
- 没有错误
- 对现有索引没有影响
- 查询的空统计信息(即未创建新索引)
干杯
这篇关于在 Neo4J 中,当索引已经存在时启动 CREATE INDEX ON的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文