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

New asset_info_cache table #142

Merged
merged 7 commits into from Dec 20, 2022
Merged

New asset_info_cache table #142

merged 7 commits into from Dec 20, 2022

Conversation

Scitz0
Copy link
Contributor

@Scitz0 Scitz0 commented Dec 7, 2022

Description

  • New asset_info_cache table
  • Update rpc's where it makes sense to add decimals
  • New asset_info_bulk rpc that takes bulk input. Current asset_info is untouched and is to be phased out.

Where should the reviewer start?

Making sure the cache table is populated and the correctness of data.
Performance testing to make sure both cache table and rpc's perform as expected.

Motivation and context

Supporting bulk asset requests reduces the number of queries needed and the cache table helps reduce the server load for each call while adding a scheduled load.

Which issue it fixes?

#138 & #127

How has this been tested?

Tests have been done but as it adds a new cache table, updates rpc's, and has schema changes. All these things need to be verified to be correct. The asset info cache table is updated every 1 min, so new mints could take up to this limit at worst before some fields in the asset_info_bulk endpoint are populated.

- New asset_info_cache table
- Update rpc's where it makes sense to add decimals
- New asset_info_bulk rpc that takes bulk input. Current asset_info untouched and to be phased out.
@Scitz0 Scitz0 requested a review from rdlrt December 7, 2022 12:21
Copy link
Contributor

@rdlrt rdlrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Scitz0 Scitz0 merged commit 583b1f6 into main Dec 20, 2022
@Scitz0 Scitz0 deleted the asset-info-cache branch December 20, 2022 12:58
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.

Added 1 field to display decimals in api https://api.koios.rest/api/v0/account_assets
2 participants