Skip to content

replace unmaintained rocksdb bindings with f321x's fork - #347

Merged
SomberNight merged 2 commits into
spesmilo:masterfrom
SomberNight:202605_rocksdb
Jun 2, 2026
Merged

SomberNight merged 2 commits into
spesmilo:masterfrom
SomberNight:202605_rocksdb

Conversation

@SomberNight

@SomberNight SomberNight commented May 29, 2026 •

Copy link
Copy Markdown
Member

There are basically no maintained python bindings for RocksDB. The most up to date is perhaps NightTsarina/python-rocksdb, but it only supports up to RocksDB <7. Even debian stable(13) packages RocksDB 9 these days.

f321x's new rocksdb bindings are based on NightTsarina/python-rocksdb [0], plus Claude (LLM) adding support to modern Cython, cpython, and RocksDB.


I skimmed the source diff up to the "v2.0.0" tag (commit),
and I reproduced the "rocksdb-ng==2.0.0" sdist from PyPI. [2]

I skimmed the source diff up to the "v2.2.0" tag (commit),
and I reproduced the "rocksdb-ng==2.2.0" sdist from PyPI. [3]


[0]: NightTsarina/python-rocksdb@dad2509
[2]: d683f9ac2c02f4a3e8be184bd4559b2c5a2f982272f06545a6ae20e2ffe1ac11 dist/rocksdb_ng-2.0.0.tar.gz
[3]: 80b3dd87c1343a8d5a8232715b72198fed6b56605c8bbe020bc2d895ef66f17c dist/rocksdb_ng-2.2.0.tar.gz

Comment thread .github/workflows/ci.yml Resolved
@SomberNight

SomberNight commented May 29, 2026 •

Copy link
Copy Markdown
Member Author

I started syncing a server on mainnet.

EDIT: I synced both with the version 2.0 bindings and then again with 2.2. Using rocksdb 9.10 on debian stable.
Full sync from genesis takes around 30 hours on my machine. Compared to 40 hours with LevelDB.
The DB is also smaller with RocksDB (106 GiB vs 122 GiB).

f321x's new rocksdb bindings are based on NightTsarina/python-rocksdb [0],
plus Claude (LLM) adding support to modern Cython, cpython, and RocksDB.

I skimmed the source diff up to the "v2.0.0" tag (commit [1]),
and I reproduced the "rocksdb-ng==2.0.0" sdist from PyPI. [2]

[0]: NightTsarina/python-rocksdb@dad2509
[1]: f321x/python-rocksdb@c1959a8
[2]: `d683f9ac2c02f4a3e8be184bd4559b2c5a2f982272f06545a6ae20e2ffe1ac11  dist/rocksdb_ng-2.0.0.tar.gz`
@SomberNight
SomberNight force-pushed the 202605_rocksdb branch 5 times, most recently from 91150c7 to 7abcdb3 Compare June 2, 2026 16:52
- user will need to choose explicitly
- but backwards compat for now
@SomberNight
SomberNight marked this pull request as ready for review June 2, 2026 17:06
@SomberNight
SomberNight merged commit 80c8be7 into spesmilo:master Jun 2, 2026
3 checks passed
@f321x

f321x commented Jun 5, 2026

Copy link
Copy Markdown
Member

Also synced a server with rocksdb-ng==2.2.0:

INFO:DB:sync time: 21h 09m 39s  ETA: 00s

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.

2 participants