A new universe for your graph data.Meet Galactus DB
GALACTUS DB WIKIDeployment · Queries · Operations

Indexes and constraints

Wiki

On this page

Which index for which job?

You want to…Use
Fast exact lookup … {prop: v} / WHERE n.prop = vProperty index (Property, range and composite indexes)
Ordered range or prefix predicatesRange/composite indexes
Membership or position inside list propertiesElement indexes
Require a value, tuple, shared or per-element identityConstraint families
Ordered range or prefix predicatesRange/composite indexes
Membership or position inside list propertiesElement indexes
Require a value, tuple, shared or per-element identityConstraint families
Guarantee a property is unique per labelUniqueness constraint (Constraints and shared uniqueness)
Relevance-ranked text search over a string propertyFull-text index + SEARCH (Full-text search)
Nearest-neighbour over embedding vectorsVector index (Vector search)
Distance / radius queries over pointsPoint index (Spatial indexes)
Find shapes intersecting a query geometrySpatial shape index and explicit db.index.spatial.intersects (Spatial indexes)

Persistence of indexes

For a complete inventory, use SHOW INDEXES for hash, range, composite and element declarations, plus SHOW FULLTEXT INDEXES, SHOW VECTOR INDEXES and SHOW POINT INDEXES and SHOW SPATIAL INDEXES. SHOW CONSTRAINTS lists every constraint kind.

All indexes are declaration-only on disk: the declaration is persisted (in the WAL/snapshot), and the index contents are rebuilt by re-reading the stored values on replay/restore. This keeps the on-disk format small and means an index can never hold stale entries after a restart. See Operations.

Articles

EXPLAIN and PROFILE · Resident and hybrid storage · Schema and maintenance procedures

Planning a deployment? Review compatibility and licence setup for your instance.