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

Download KeyValues in remote externalities early #3584

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1c058e5
Download KeyValues in remote externalities early
dharjeezy Mar 5, 2024
83a94b0
get keys and values using stream
dharjeezy Mar 7, 2024
22a8067
nit
dharjeezy Mar 7, 2024
9b46b9b
remove unneeded crates
dharjeezy Mar 7, 2024
b897f03
flatten vec
dharjeezy Mar 7, 2024
8a7e1ea
check if key is empty and yield
dharjeezy Mar 8, 2024
d5eebc0
Merge branch 'master' into dami/start_downloading_kvs_early
dharjeezy Mar 8, 2024
041b278
Merge branch 'master' into dami/start_downloading_kvs_early
dharjeezy Mar 15, 2024
3112a2d
Merge branch 'master' into dami/start_downloading_kvs_early
liamaharon Mar 18, 2024
de31038
remove redundant clones
dharjeezy Mar 23, 2024
108abd8
Merge remote-tracking branch 'origin/dami/start_downloading_kvs_early…
dharjeezy Mar 23, 2024
b525601
Merge branch 'master' into dami/start_downloading_kvs_early
dharjeezy Mar 23, 2024
909ddef
remove division of workload
dharjeezy Mar 25, 2024
1ae385f
Merge remote-tracking branch 'origin/master' into dami/start_download…
dharjeezy May 1, 2024
77ead74
fmt
dharjeezy May 1, 2024
e21ef7b
pr doc
dharjeezy May 28, 2024
d4c1af3
Merge remote-tracking branch 'origin/master' into dami/start_download…
dharjeezy May 28, 2024
907fe70
lock
dharjeezy May 28, 2024
aa5f285
pr doc
dharjeezy May 28, 2024
667eee7
batch insert in multiple spawned threads
dharjeezy Jun 29, 2024
f914719
Merge remote-tracking branch 'origin/master' into dami/start_download…
dharjeezy Jun 29, 2024
6a974cd
Merge remote-tracking branch 'origin/master' into dami/start_download…
dharjeezy Jun 29, 2024
7bf124d
conflict res
dharjeezy Jun 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ asset-test-utils = { path = "cumulus/parachains/runtimes/assets/test-utils", def
assets-common = { path = "cumulus/parachains/runtimes/assets/common", default-features = false }
async-channel = { version = "1.8.0" }
async-std = { version = "1.9.0" }
async-stream = { version = "0.3.5" }
async-trait = { version = "0.1.79" }
asynchronous-codec = { version = "0.6" }
backoff = { version = "0.4" }
Expand Down
14 changes: 14 additions & 0 deletions prdoc/pr_3584.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json

title: Download KeyValues in remote externalities early

doc:
- audience: Runtime User
description: |
This PR allows for downloading of Key Values early, as the Keys and Values are being fetched from a stream
they get inserted into the DB

crates:
- name: frame-remote-externalities
bump: major
1 change: 1 addition & 0 deletions substrate/utils/frame/remote-externalities/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ futures = { workspace = true }
indicatif = { workspace = true }
spinners = { workspace = true }
tokio-retry = { workspace = true }
async-stream = { workspace = true }

[dev-dependencies]
sp-tracing = { workspace = true, default-features = true }
Expand Down
Loading
Loading