Create range indexes for exact/range lookups

Create indexes to accelerate equality and range predicates on node properties in FalkorDB

falkordb Updated

File contents

Create range indexes for exact/range lookups

Create indexes to accelerate equality and range predicates on node properties.

Usage

Use CREATE INDEX FOR to create an index on a node label and property combination.

Example

redis-cli GRAPH.QUERY social "CREATE INDEX FOR (p:Person) ON (p.age)"

Notes

  • Range indexes speed up both exact matches and range queries
  • Indexes improve performance for WHERE clauses with equality or range predicates
  • Index creation is synchronous and may take time for large datasets
  • Multiple indexes can be created on different properties
  • Indexes consume additional memory but significantly improve query performance

falkordb/skills/tree/main/cypher-skills/create-range-indexes commit d4d365d9a7

Frequently asked questions

npx skillmds@latest add falkordb/create-range-indexes-for-exact-range-lookups