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

Batch fetching storage values again #1199

Merged
merged 4 commits into from
Oct 11, 2023
Merged

Batch fetching storage values again #1199

merged 4 commits into from
Oct 11, 2023

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Oct 9, 2023

When the Backend trait was added, I moved to fetching storage values one by one because the batch function we used was a little confusing and it seemed simpler at the time.

This PR adds back the fetching of storage values in batches, and improves the docs on the relevant RPC methods to clarify their behaviour.

Closes #1195

@jsdw jsdw requested a review from a team as a code owner October 9, 2023 10:52
Copy link
Member

@niklasad1 niklasad1 left a comment

Choose a reason for hiding this comment

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

LGTM

Makes sense to me that you removed it in the first place because the code is quite complicated

@jsdw
Copy link
Collaborator Author

jsdw commented Oct 10, 2023

Before I merge this I'll just see if its worth adding a test or something to make sure that the storage values returned are as expected.

@jsdw jsdw merged commit d44941f into master Oct 11, 2023
9 checks passed
@jsdw jsdw deleted the jsdw-batch-legacy-storage branch October 11, 2023 12:33
@jsdw jsdw mentioned this pull request Dec 7, 2023
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.

Regression in speed of fetching child storage values in 0.32
4 participants