Search code examples
neo4jspring-data-neo4jspring-data-neo4j-4neo4j-ogm

Spring Data Neo4j 4 and schema indexes for @GraphId


According to official SDN4 documentation - In Spring Data Neo4j 4, index management concerns were removed from the mapping framework entirely.

So how about indexes for @GraphId ? Is it also out of scope in SDN4 and indexes for fields annotated with @GraphId have to be also created manually ?


Solution

  • @GraphId currently represents the neo4j internal id on which you don't have any control.

    Querying by id is the fastest lookup in neo4j btw.