Big Reliability Release
Rollback On Reorg Refactoring
We completely rewrote our rollback on reorg logic to make it more robust, predictable, and performant. The update introduces numerous new tests and fixes for all previously identified indexing issues:
- Fixes all known indexing and rollback on reorg issues
- Optimizes database writing logic, which reduces latency by dozens of milliseconds
- Reduces internal tables' size for managing reorg and rollback
- The Events Processed counter became reorg-resistant and can be used to verify data consistency
- Enables more amazing features
Nice Additions
- SubGraph migration cursor rules to init template #778
- Ability to get chains readiness status from
context.chains#775 - Extended supported entity name length up to 63 characters
Other Fixes and Internal Changes
- Fixes https://github.com/enviodev/hyperindex/issues/786
- Fixes https://github.com/enviodev/hyperindex/issues/788
- Fixes https://github.com/enviodev/hyperindex/issues/749
- Fixes running multiple indexers with different schemas on a single database
- Adds Effect cache load Prometheus metrics
- Removes redundant processing Prometheus metrics and adds
envio_progress_batches_count - Fixes https://github.com/enviodev/hyperindex/discussions/751 - started validating cached effects when loading them from storage
- Improves batch processing log to be less messy
- Prevents stale
contextaccess after the handler finishes execution #791 - Changed the structure of the internal history tables to reference only checkpoint_id. Also replaced suffix
_historywith prefixenvio_history_ - Replaced internal
end_of_block_range_scanned_datatable withenvio_checkpoints - Now history is saved per block instead of per event log
- All block events are always guaranteed to be processed in a single batch
New Contributors
- @Segfaultd made their first contribution in #775