Questions tagged [rocks-db]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

Db weights in Runtime

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 ...
lime's user avatar
  • 111
2 votes
1 answer
56 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 ...
Syed Kamran's user avatar
1 vote
1 answer
76 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 ...
Luke Schoen's user avatar
  • 2,292
0 votes
0 answers
36 views

Why can't we pass the path to a database other than RocksDB (e.g. ParityDB) to the Substrate Service?

The Substrate Client has a: Substrate CLI here, where we're given the option to choose to use either RocksDB or ParityDB Substrate Service (sc-service) where here it states: "The RocksDB ...
Luke Schoen's user avatar
  • 2,292
0 votes
1 answer
72 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 ...
Luke Schoen's user avatar
  • 2,292
1 vote
1 answer
39 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 ...
Simson's user avatar
  • 1,110
7 votes
1 answer
227 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?
kayvan jam's user avatar
3 votes
1 answer
272 views

build failed with substrate chain on rocksdb in linux

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 ...
kayvan jam's user avatar
0 votes
2 answers
255 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] &...
gfan's user avatar
  • 161
5 votes
1 answer
215 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 ...
Chralt's user avatar
  • 503
2 votes
1 answer
80 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 ...
Alex Sed's user avatar
  • 545
1 vote
2 answers
426 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 ...
user2556's user avatar
4 votes
1 answer
127 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.
Pablo Buitrago's user avatar
3 votes
2 answers
913 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: ...
Christian Pavilonis's user avatar