Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

[RPC-Spec-V2] Storage: Add support for pagination #14549

Closed
Tracked by #14222
lexnv opened this issue Jul 11, 2023 · 0 comments · Fixed by #14755
Closed
Tracked by #14222

[RPC-Spec-V2] Storage: Add support for pagination #14549

lexnv opened this issue Jul 11, 2023 · 0 comments · Fixed by #14755
Assignees
Labels
J0-enhancement An additional feature request.

Comments

@lexnv
Copy link
Contributor

lexnv commented Jul 11, 2023

Queries that return multiple objects (for example iterating over storage) must be paginated.

  • Introduce RPC method chainHead_unstable_storageContinue
  • Add configurable server storage limit before starting pagination
  • Pause further storage queries for the subscription until chainHead_unstable_storageContinue is called
  • Correlated chainHead_unstable_storageContinue to resume events

// @paritytech/subxt-team

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J0-enhancement An additional feature request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant