Indexes in Neo4j
An index in Neo4j is a data structure that allows the graph engine to retrieve data quickly. All indexes in Neo4j require more storage in the graph, so you must ensure that you do not index everything!
You learned in the previous module that a best practice is to create uniqueness iFull definition for constraint (opens in a new tab)A rule the database enforces on every node or relationship with a given label or type, rejecting any write that breaks it. before you load your data. After the data is loaded, you create additional indexes to make your queries perform faster. Using indexes makes writing data slower, but retrieving it faster.
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register