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

stats: reuse chart data where available #1053

Open
bragov4ik opened this issue Sep 12, 2024 · 0 comments
Open

stats: reuse chart data where available #1053

bragov4ik opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bragov4ik
Copy link
Contributor

Some charts can be computed (directly) from other charts; the new stats architecture allows to perform such updates, so this should decrease load on the blockscout DB by improving efficiency of the queries.

For example,

  • averageTxnFee = txnsFee / newTxns
  • averageGasPrice = txnsFee / delta(gasUsedGrowth)
@bragov4ik bragov4ik added enhancement New feature or request stats and removed stats labels Sep 12, 2024
@bragov4ik bragov4ik self-assigned this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant