Skip to content

Commit

Permalink
Replace RocksDB by LMDB
Browse files Browse the repository at this point in the history
* Removed RocksDB from Cargo.toml and database module.
* Added `heed` crate to Cargo.toml.
* Reimplemented all the database API to make use of LMDB over tokio blocking tasks.
* Fixed potential key calculation bug.
* Added documentation.
* Refactored `Database::chunk_exists` to directly load the queried chunk into cache if it exists.
* Refactored `Database::batch_insert` to avoid querying database for loading into cache chunks the function already have allocated.
  • Loading branch information
Asurar0 committed Sep 10, 2024
1 parent 731413a commit 292984b
Show file tree
Hide file tree
Showing 4 changed files with 413 additions and 334 deletions.
Loading

0 comments on commit 292984b

Please sign in to comment.