# Verify index usage

> Confirm queries are using indexes through execution plan analysis with GRAPH.EXPLAIN

- Skill: `falkordb/verify-index-usage` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add falkordb/verify-index-usage`
- Raw SKILL.md: https://api.skillmd.com/api/skills/falkordb/verify-index-usage/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: falkordb (https://skillmd.com/u/falkordb)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/falkordb/verify-index-usage

---


# Verify index usage

Confirm that your queries are using indexes through execution plan analysis.

## Usage

Use `GRAPH.EXPLAIN` to verify that the query execution plan includes index scan operations.

## Example

```bash
redis-cli GRAPH.EXPLAIN social "MATCH (p:Person) WHERE p.age = 30 RETURN p"
```

## Notes

- Look for "Index Scan" operations in the execution plan
- If you see "Label Scan" or "All Node Scan", the index is not being used
- Indexes are only used when predicates match the indexed properties
- Ensure indexes exist before expecting them to be used
- Some query patterns may prevent index usage (e.g., not-equal operators)

