stargately / blockroma

a open-source blockchain explorer built with typescript for Ethereum web3 compatible blockchains
https://blockroma.com
32 stars 21 forks source link

fix home tx query is too slow when tx table is large #12

Closed puncsky closed 2 years ago

puncsky commented 2 years ago

await query.getCount(); for the entire table scan is too slow; use an estimation instead.

Description

please describe why the changes are made for reviewers to understand the context. If it is a visual change, please attach a screenshot or gif.

Links