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

Indexer performance update: Add skip_metadata flag for token if indexer failed to get any of [name, symbol, decimals, totalSupply] #4544

Merged
merged 2 commits into from
Aug 27, 2021

Conversation

vbaranov
Copy link
Member

@vbaranov vbaranov commented Aug 23, 2021

Motivation

Optimization of indexer performance: reducing the number of requests to the archive node.

Changelog

  • Add skip_metadata flag to tokens table if indexer failed to fetch [name, symbol, decimals, totalSupply] props from the token from the archive node. And if the flag is set, then indexer will skip the request for these props next time.

  • In token total supply on-demand fetcher replace requesting for the whole set of token functions ([name, symbol, decimals, totalSupply]) with totalSupply only request.

  • [Chore] add bridged prop to the default_on_conflict function for tokens importer.

Checklist for your Pull Request (PR)

@vbaranov vbaranov force-pushed the vb-indexer-reduce-tokens-update branch 2 times, most recently from 625e641 to 050e62e Compare August 23, 2021 18:00
@vbaranov vbaranov changed the title Add skip_metadata flag for token if indexer failed to get any of [name, symbol, decimals, totalSupply] Indexer performance update: Add skip_metadata flag for token if indexer failed to get any of [name, symbol, decimals, totalSupply] Aug 24, 2021
@vbaranov vbaranov force-pushed the vb-indexer-reduce-tokens-update branch from 050e62e to e9c0925 Compare August 24, 2021 09:04
@vbaranov vbaranov merged commit 062b743 into master Aug 27, 2021
@vbaranov vbaranov deleted the vb-indexer-reduce-tokens-update branch August 27, 2021 12:01
sidhujag pushed a commit to syscoin/blockscout that referenced this pull request Aug 27, 2021
…tokens-update

Indexer performance update: Add skip_metadata flag for token if indexer failed to get any of [name, symbol, decimals, totalSupply]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant