Skip to content

Part 2 - db: migrate from python-rocksdb to rocksdict#975

Draft
ping-ke wants to merge 2 commits intoupgrade/py313-baselinefrom
upgrade/db-rocksdict
Draft

Part 2 - db: migrate from python-rocksdb to rocksdict#975
ping-ke wants to merge 2 commits intoupgrade/py313-baselinefrom
upgrade/db-rocksdict

Conversation

@ping-ke
Copy link
Copy Markdown
Contributor

@ping-ke ping-ke commented Mar 15, 2026

Just a copy of PR #967

python-rocksdb is unmaintained and incompatible with Python 3.13.
Switch to rocksdict which provides an actively maintained Python
binding for RocksDB with a compatible but slightly different API.

Changes:
- Update Options API (method-style setters instead of attribute assignment)
- Replace iteritems() with iter() + manual key/value/next() calls
- Fix multi_get() to return dict from list result
- Add close() call (rocksdict supports it, python-rocksdb didn't)
- Update Dockerfile to install build dependencies for rocksdict

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant