blockscout / blockscout-rs

Microservices for blockscout indexer
MIT License
161 stars 116 forks source link

stats: utilize `transaction_stats` when available #1052

Open bragov4ik opened 1 month ago

bragov4ik commented 1 month ago

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:

bragov4ik commented 1 month ago

Some details from DMs with Victor:

bragov4ik commented 1 month ago

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)