Insight reorg handling improvement

Insight reorg handling improvement
Insight 0.2.1-beta

Open source version of Insight 0.2.1-beta has been released and focuses on the robustness and reliability of indexing blockchain data.

Reorg handling improvements

  • Implemented dynamic block range calculations for the reorg handler, allowing both forward and backward scanning based on sync state.
  • Improved logic to find specific reorged block numbers rather than ranges, allowing to scan bigger ranges at a time.
  • Enhanced error messages for better debugging.
  • Updated reorg detection to avoid including non-reorged edge blocks
  • Implemented fetching blocks in parallel chunks for performance gains
  • Improved test coverage

API Changes

  • Added support for more time functions in aggregations. Added `toDateTime`, `toStartOfMonth`, `toStartOfHour`, and `toStartOfMinute`
  • Whitelisted concat function to be used in aggregations and parsing the contract address from raw data

Clickhouse delete optimizations

  • Improved delete performance in ClickHouse by implementing partition-aware deletes and asynchronous processing. This enhancement minimizes wait times and optimizes resource usage during deletion operations

Learn more about Insight and how to use it.
Insight is open source.