Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2pg: add integration update table #188

Merged
merged 1 commit into from
Oct 25, 2023
Merged

e2pg: add integration update table #188

merged 1 commit into from
Oct 25, 2023

Conversation

ryandotsmith
Copy link
Member

This table will be used to control backfill tasks. The task table keeps a history of blocks processed, but they are used for detecting a re-organization. It does not track an integration's individual progress.

By introducing the intg table, we now can know the precise set of blocks that an integration has processed.

This will enable a backfill task to group a set of integrations that need backfilling and process block history based on the needs of the integration.

This commit also introduces the notion of e2pg.{task,intg} pruning. We keep around the last 200 blocks for each src_name / src_name,name. This should help keep queries on this table fast while also preserving history for reorgs and debugging.

@ryandotsmith ryandotsmith self-assigned this Oct 25, 2023
This table will be used to control backfill tasks. The task table keeps
a history of blocks processed, but they are used for detecting a
re-organization. It does not track an integration's individual progress.

By introducing the intg table, we now can know the precise set of blocks
that an integration has processed.

This will enable a backfill task to group a set of integrations that
need backfilling and process block history based on the needs of the
integration.

This commit also introduces the notion of e2pg.{task,intg} pruning. We
keep around the last 200 blocks for each src_name / src_name,name. This
should help keep queries on this table fast while also preserving
history for reorgs and debugging.
@ryandotsmith ryandotsmith merged commit c654a3e into main Oct 25, 2023
2 checks passed
@ryandotsmith ryandotsmith deleted the r/intg branch October 25, 2023 04:59
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.

1 participant