Skip to content

HyperIndex v2.31.1 β†’ Major reliability & performance upgrades πŸš€Β #205

@moose-code

Description

@moose-code

Hi folks β€” JonJon here, co-founder at Envio.

We've shipped some massive upgrades over the past few months! Here's what you might have missed:

v2.31.0 β€” "Big Reliability Release" πŸ›οΈ

  • Complete rollback on reorg refactoring β†’ fixes all known indexing issues, optimized DB writes (dozens of ms faster!), reorg-resistant event counter
  • Extended entity name length support (up to 63 chars)
  • Multiple indexers with different schemas on single database now supported

v2.30.0 β€” Address Format Configuration & Performance πŸ†•

  • Choose between checksum (default) and lowercase addresses β†’ facilitates SubGraph migration and improves performance in some instances
  • Faster Event Decoder for RPC source β†’ multiple times faster using the HyperSync event decoder instead of Viem
  • Fixes for indexing-at-the-head metric and GraphQL entity read permissions
  • Internal improvements: guaranteed single-batch block events, optimized dynamic address persistence

v2.29.0 β€” Block Handlers πŸ†•

  • Run logic on every block or at intervals! Perfect for aggregations and time-series data
  • Use onBlock() for powerful new patterns: time intervals, preset handlers, multichain mode
  • Check out the Block Handlers docs for examples

v2.28.0 β€” Speed & Scale

  • 2X faster RPC historical sync β†’ halved the number of requests needed
  • Much faster indexing for big factories β†’ 2M addresses now index 2X faster (4 days β†’ 2 days!)
  • New official _meta query for tracking indexer progress per chain

v2.27.0 β€” Preload Optimization ⚑

  • Auto-batched entity loading β†’ makes handlers multiple times faster with zero code changes
  • Set preload_handlers: true in config and watch the magic happen
  • Contract-specific start blocks for optimized indexing

v2.26.0 β€” Built-in Effect Cache

  • Persistent cache for Effect API calls β†’ set cache: true and share cache with Hosted Service
  • Dramatically reduces redundant external API calls

Earlier gems you might have missed

  • Effect API (v2.19) β€” auto-batching, memoization & deduplication for external calls
  • getOrCreate / getOrThrow helpers β€” cleaner code, no boilerplate null checks
  • Automatic RPC fallback when HyperSync stalls

Need anything?

  • Quick tips on schema design or perf tuning
  • Help with Block Handlers or Preload optimization
  • Migration support for our hosted service (now with monitoring & alerting!)

Reply here or join us on Discord.

# one-liner upgrade
pnpm i envio@latest

Full changelog β†’ https://github.com/enviodev/hyperindex/releases/tag/v2.31.1
Docs β†’ https://docs.envio.dev

Feel free to close if you're all set.
Best,
JonJon & the Envio team

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions