Indexes
CREATE INDEX for O(1) property lookups. Without an index, MATCH scans every node.
CREATE INDEX ON :Person(name)Drop an index#
DROP INDEX ON :Person(name)List indexes#
CALL db.indexes()Or in the REPL:
:indexes
See Also#
- Constraints — UNIQUE constraints
Try it
Open ↗⌘↵ to run
Loading engine…