Spring Data Neo4j 4.0.0 中的约束和索引声明
Constraint and Index Declaration in Spring Data Neo4j 4.0.0
我只想澄清一下我在 Spring Data Neo4j 4.0.0 文档中读到的内容。因此,提供的配置索引和唯一约束的方法只是通过使用 Cypher 查询直接在 Web 控制台中定义它,而不是在应用程序内部(就像 @indexing 标签之前所做的那样)。正确吗?
提前致谢,非常感谢您的回复!
没错。索引维护和配置不是 OGM 或 Spring Data 的责任。它可以按照您通过 shell 所说的进行配置,或者您可以使用 Session/Neo4jTemplate.execute 和您的 Cypher 语句。
Neo4j’s schema indexes are used automatically by Cypher when set up in your database. Spring Data Neo4j (version 4) does not provide facilities for handling that setup out of the box.
我只想澄清一下我在 Spring Data Neo4j 4.0.0 文档中读到的内容。因此,提供的配置索引和唯一约束的方法只是通过使用 Cypher 查询直接在 Web 控制台中定义它,而不是在应用程序内部(就像 @indexing 标签之前所做的那样)。正确吗?
提前致谢,非常感谢您的回复!
没错。索引维护和配置不是 OGM 或 Spring Data 的责任。它可以按照您通过 shell 所说的进行配置,或者您可以使用 Session/Neo4jTemplate.execute 和您的 Cypher 语句。
Neo4j’s schema indexes are used automatically by Cypher when set up in your database. Spring Data Neo4j (version 4) does not provide facilities for handling that setup out of the box.