Skip to content

docs(indexer): adding a chain needs a new DATABASE_SCHEMA - #22

Merged
AryanGodara merged 1 commit into
mainfrom
docs/new-chain-schema-bump
Dec 1, 2026
Merged

AryanGodara merged 1 commit into
mainfrom
docs/new-chain-schema-bump

Conversation

@AryanGodara

Copy link
Copy Markdown
Member

Description

Adding a chain to an existing schema crashes the indexer. With isolated ordering, Ponder creates a chain's partitions only when it creates the schema, so the new chain has no tables and the indexer exits on its first event, for every chain. This took prod down when Robinhood was added (cowprotocol/infrastructure#7902). The redo bumped DATABASE_SCHEMA (cowprotocol/infrastructure#7920).

Changes

  • "Adding a new chain" note: the same deploy must change DATABASE_SCHEMA.
  • Schema Changes: explains why adding a chain is a schema change.
  • Cold-start: a cached reindex still re-runs every handler, so it can take over an hour, not "minutes".

Signed-off-by: Aryan Godara <aryangodara03@gmail.com>
@AryanGodara
AryanGodara merged commit 04bd8b9 into main Dec 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants