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

miscellaneous indexer improvements: 2) Resync only when required. #415

Open
D-Stacks opened this issue Jan 27, 2024 · 0 comments
Open

miscellaneous indexer improvements: 2) Resync only when required. #415

D-Stacks opened this issue Jan 27, 2024 · 0 comments

Comments

@D-Stacks
Copy link
Collaborator

D-Stacks commented Jan 27, 2024

Under certain circumstances indexers may resync from scratch, even if there is no need, as we can expect the node to resync from scratch anyway.

Potential routes:

  1. find a possibility to identify that the node is in a state where we expect a full resync of consensus on start-up

    • this may include virtual daa score / checks for genesis hash / checking config if node is archival.
  2. [preferred] resync the indexes at some point when the node itself knows it will only preform a catch-up idb and not a full resync.

Arguments for (keeping the current implementation):

  1. always keeping indexes in sync, even while node is not processing.

Against:

  1. slightly longer sync times
  2. potentially extra Db read and write costs while syncing.
@D-Stacks D-Stacks changed the title miscellaneous indexer improvements: 1) Resync only when required. miscellaneous indexer improvements: 2) Resync only when required. Jan 27, 2024
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

No branches or pull requests

1 participant