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

fix: optimize pallets-storage #739

Merged
merged 3 commits into from
Nov 1, 2021
Merged

fix: optimize pallets-storage #739

merged 3 commits into from
Nov 1, 2021

Conversation

TarikGul
Copy link
Member

@TarikGul TarikGul commented Oct 28, 2021

This PR optimizes the /pallets/{palletId}/storage/* endpoints for V14 metadata by about a factor of 10. When using the adjustMetadataV13 query parameter you will still experience slow load times. I also added a warning for the adjustMetadataV13 query param when it's in use. The logged warning expresses that its subject to deprecation and will soon be removed.

closes: #730

src/controllers/pallets/PalletsStorageController.ts Outdated Show resolved Hide resolved
src/controllers/pallets/PalletsStorageController.ts Outdated Show resolved Hide resolved
@TarikGul TarikGul merged commit 30d4467 into master Nov 1, 2021
@TarikGul TarikGul deleted the tarik-optim-pallets branch November 1, 2021 14:52
This pull request was closed.
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.

/pallets/Staking/storage/CurrentEra?at= experiencing increased second response times
5 participants