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

WIP - balances cache #2346

Closed
wants to merge 29 commits into from
Closed

WIP - balances cache #2346

wants to merge 29 commits into from

Conversation

rafal-ch
Copy link
Contributor

@rafal-ch rafal-ch commented Oct 14, 2024

Linked Issues/PRs

Partially closes #1965

Description

  • New Balances database
  • Update the "coins" in the new database on each processed event
  • The balance GraphQL query uses the new database to return the balance
    • this is enabled now just for testing purposes, until the migration is completed we should keep using the classic method of counting the balance

Plus some throw away hacks that will be dismissed when the proper migration code is done:

  1. replace_forced() in off chain DB, that uses the new StorageMutateForced trait
  2. migration of the DB metadata from V1 to V2 which contains the indexation progress

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog
  • New behavior is reflected in tests
  • The specification matches the implemented behavior (link update PR if changes are needed)

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

After merging, notify other teams

[Add or remove entries as needed]

@rafal-ch rafal-ch changed the title 1965 balances WIP - balances cache Oct 16, 2024
@rafal-ch
Copy link
Contributor Author

Closed in favor of #2383

@rafal-ch rafal-ch closed this Oct 22, 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

Successfully merging this pull request may close these issues.

1 participant