indexing-performance

Optimize indexer speed and sync performance for Polymarket V2 indexing on Polygon.

43|9|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/enviodev/polymarket-v2-indexer --skill indexing-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: indexing-performance
Source: https://github.com/enviodev/polymarket-v2-indexer/tree/main/.claude/skills/indexing-performance
Command: npx skills add https://github.com/enviodev/polymarket-v2-indexer --skill indexing-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Indexing large blockchain datasets can become slow and resource‑intensive, especially when default RPC settings or improper batch sizes limit throughput. This Skill helps developers accelerate their indexer synchronization and fine‑tune performance parameters.

Core Features & Use Cases

  • HyperSync default: Leverages the fastest data source for supported chains, providing up to 1000× speed improvement without extra configuration.
  • Batch size tuning: Allows adjustment of events per batch to balance memory use and handler latency.
  • RPC parameter configuration: Offers detailed settings for each chain, including query intervals, back‑off strategies, and WebSocket integration for low‑latency live block detection.
  • Database indexing guidance: Recommends adding index annotations to schema fields for quicker query responses.

A typical scenario is deploying the Polymarket V2 indexer on a new Polygon network, where adjusting RPC back‑off and batch size reduces sync time from hours to minutes.

Quick Start

Use the indexing-performance skill to define your batch size and RPC settings for faster blockchain sync.

Frequently Asked Questions about indexing-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I speed up blockchain indexer synchronization on Polygon?

To speed up blockchain indexer synchronization, adjust batch size, RPC parameters, and WebSocket settings. Applying HyperSync as the default data source can provide up to 1000× faster synchronization without extra configuration.

What is the best way to tune RPC batch size for blockchain indexing?

The best way to tune RPC batch size for blockchain indexing is adjusting the events per batch to balance memory use and handler latency. Proper batch sizing reduces sync time from hours to minutes.

Does HyperSync work with Polymarket V2 indexing on Polygon?

Yes, HyperSync works with Polymarket V2 indexing on Polygon. It serves as the fastest data source for supported chains, achieving up to 1000× speed improvement without requiring extra configuration.

How do I configure WebSocket settings for low-latency live block detection?

You configure WebSocket settings for low-latency live block detection by applying RPC parameter configuration. This includes setting query intervals and back-off strategies for each chain to optimize indexer performance.

When should I add database index annotations to schema fields?

You should add database index annotations to schema fields when you need quicker query responses during indexing. Database indexing guidance recommends this to improve query performance alongside batch size and RPC tuning.

Why does indexer synchronization become slow and resource-intensive?

Indexer synchronization becomes slow and resource-intensive when default RPC settings or improper batch sizes limit throughput. Optimizing these parameters accelerates synchronization and fine-tunes performance.