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: utilize transaction_stats when available #1052

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

stats: utilize transaction_stats when available #1052

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

Comments

@bragov4ik
Copy link
Contributor

Apparently, transaction_stats has useful precomputed statistics for recent days. We might use it instead of heavy (30+ mins in eth mainnet) queries (if available).

Potential affected charts:

  • txns_fee
  • average_txn_fee
  • average_gas_price
@bragov4ik bragov4ik added the enhancement New feature or request label Sep 12, 2024
@bragov4ik
Copy link
Contributor Author

Some details from DMs with Victor:

  • This table is used & updated
  • It only contains data for some recent days (depends on TXS_STATS_DAYS_TO_COMPILE_AT_INIT variable, although the env is probably not relevant)
  • It updates once each day at 0:00 UTC

@bragov4ik bragov4ik self-assigned this Sep 12, 2024
@bragov4ik
Copy link
Contributor Author

bragov4ik commented Sep 12, 2024

From this info, it makes sense to update corresponding charts after this data becomes available.

Although it doesn't perfectly fit with existing model of update, it's possible to make a custom logic for such case; need to think about it
(i.e. it's not trivial to do properly)

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