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

[pkg] Async Reconciler Count Updates #192

Merged
merged 3 commits into from
Dec 1, 2020

Conversation

patrick-ogrady
Copy link
Contributor

Related: https://github.com/coinbase/rosetta-cli/tree/patrick/priority-locks

This PR updates pkg/processor/reconciler_handler.go to periodically persist counts to storage instead of synchronously. This can SUBSTANTIALLY increase the reconciliation rate.

Changes

  • update pkg/processor/reconciler_handler.go to periodically persist cached counts to storage
  • invoke Updater and UpdateCounts in cmd/check_data.go

Copy link

@yfl92 yfl92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@patrick-ogrady patrick-ogrady merged commit 95bdae0 into master Dec 1, 2020
@patrick-ogrady patrick-ogrady deleted the patrick/batched-counter-updates branch December 1, 2020 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants