Reindexing Runbook
Goal
Rebuild historical index state after parser changes, contract updates, or data gaps.
When to use
- platform parser changed
- contract version boundaries were corrected
- historical gaps or duplicates were detected
- leaderboard output looks inconsistent
Prerequisites
- understand the affected platform, chain, and contract range
- know whether you are touching live or historical contracts
Steps
- Confirm the target contract metadata is correct.
- Confirm the relevant leaderboard worker is available.
- Use contract-adaption status tooling to inspect current state.
- Trigger adaption or replay for the target contract range.
- Re-check historical records and leaderboard outputs.
Verification
PerpTradingEventLogrows appear complete for the intended range- leaderboards return sane ordering
getPerpTradePositionsresults match expected trade history- simulations on the same period behave consistently
Troubleshooting
- check RPC rate limits
- check parser version correctness
- check
fromBlockandtoBlock - check for chain-specific event differences