OpenParable
Skip to content
← Back to skills

Indexer Performance

Testing & Quality
indexer-performance

Indexer Performance is an Agent Skill for testing & quality published in the enviodev/hyperindex repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when optimizing indexer speed or tuning sync performance. HyperSync, batch size, WebSocket realtime config, and preload optimization.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/enviodev/hyperindex/blob/HEAD/packages/cli/templates/static/shared/.claude/skills/indexer-performance/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/indexer-performance, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Performance Tuning

HyperSync (Default — Fastest)

HyperSync is the default data source for supported chains. Up to 1000x faster than RPC. No configuration needed — automatic for supported networks.

Batch Size

full_batch_size: 5000  # Target events per batch (default: 5000)

Reduce if handlers make many slow Effect API calls that can't be batched.

WebSocket for Realtime Indexing

Add ws: for lower-latency new block detection via eth_subscribe("newHeads"):

rpc:
  - url: ${ENVIO_RPC_ENDPOINT}
    ws: ${ENVIO_WS_ENDPOINT}
    for: realtime

Database Indexes

Add @index to schema fields for faster queries — see indexer-schema for full syntax (single-field, composite, DESC direction).

If something is unclear, use the envio-docs skill to search and read the latest documentation.