Questions tagged [rocks-db]
The rocks-db tag has no summary.
13 questions
1 vote
1 answer
65 views
Db weights in Runtime [closed]
I see that the DB weights (Rocks or Parity) are directly imported as constants in the runtime code. This means that whenever the runtime is built, it will use those constants. Why was this approach ...
2 votes
1 answer
65 views
How to upgrade rocksdb used by substrate node template?
In my parachain that I forked from substrate-node-template, github dependabot give me following security alert: "rocksdb vulnerable to out-of-bounds read" and the suggested solution is to ...
1 vote
1 answer
138 views
How are we now able to use the kvdb Rust library with ParityDB as a key-value store abstraction?
At the moment building the Substrate repository requires RocksDB library librocksdb-sys and all its native dependencies to be pulled in, but it also supports testing out the "faster and more ...
0 votes
1 answer
101 views
Why can we limit the memory the RocksDB database cache can use but not for ParityDB?
In the Substrate CLI why can we limit the memory that the RocksDB database cache can use if we choose to use it here, but we're not given the option to limit the memory that ParityDB uses if we choose ...
1 vote
1 answer
66 views
Syncing a new node, prepopulate db with polkadot
When syncing a new node from scratch it takes several days just to transfer and validate the polkadot chain. Comparing two runs reveals there are no simulates at all with the sst files. Is there an ...
7 votes
1 answer
313 views
usage parity-db instead of rocksdb
in the substrate-node-template case , I don't want to compile rocks-db at all. how it would be possible compile parity-db instead of rocks-db?
3 votes
1 answer
346 views
build failed with substrate chain on rocksdb in linux [closed]
I followed this tutorial https://docs.substrate.io/tutorials/get-started/build-local-blockchain/. I got the below error when run cargo build --release. How can I fix it? cargo build -v --release ...
0 votes
2 answers
371 views
Build RocksDB failed at snappy/snappy.cc:1033:36: error: invalid output constraint '=@ccz' in asm in MacOS while installing substrate-node-template
I use the substrate-developer-hub/substrate-node-template version: polkadot-v0.9.26 for practice. When I run cargo build --release I got error: invalid output constraint '=@ccz' in asm : [tag_type] &...
5 votes
1 answer
299 views
How to weight `on_initialize`?
Is there any best practice how to count the weights in on_initialize correctly? I read through the Polkadot and Substrate on_initialize weight calculations and couldn't always figure out: When to ...
2 votes
1 answer
114 views
Database rollback
Is there a command or an easy way to rollback the changes to a node's RocksDb to force the node to go back in its history and start fresh from previous block numbers? For example if the node has seen ...
1 vote
2 answers
529 views
Not able to build librocksdb-sys library for substrate-node-template
Getting this error while building substrate-node-template, Command uses: cargo build --release error: failed to run custom build command for librocksdb-sys v0.6.1+6.28.2 MacBook Air 2017, MacOS ...
4 votes
1 answer
156 views
How to to run the substrate-node-template with parity-db instead of rockdb?
I'm looking for a how-to-guide, or an example that runs the substrate-node-template using parity-db instead of rockdb.
3 votes
2 answers
1k views
failed to run custom build command for `librocksdb-sys v6.20.3`
My build was working last week now I can't build rocksdb for some reason. I made sure that I went though the install steps again in case I was missing something. Here's the rest of the out: error: ...