Cypher

index

A structure over a property. The database reads it to find nodes or relationships by property value, rather than scanning every one.

Also written: indexes

Example

An index over the title property of every (:Movie).

cypher
CREATE INDEX Movie_title IF NOT EXISTS
FOR (m:Movie) ON (m.title)

MATCH (m:Movie {title: 'Toy Story'}) reads the index and goes straight to that node. Without the index, the database reads the title of every (:Movie) in the graph to find it.

Lessons that use this term

The lesson and course links below open in a new tab.

No published lesson uses this term yet.

All glossary terms