Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement RocksDBStore #789

Merged
merged 6 commits into from
Feb 12, 2020
Merged

Implement RocksDBStore #789

merged 6 commits into from
Feb 12, 2020

Conversation

earlbread
Copy link
Contributor

@earlbread earlbread commented Feb 7, 2020

This implements RocksDBStore and closes #211. Currently, only the parts stored in the file have been changed to use RocksDB(Please see IterateTransactionIds, GetTransaction, PutTransaction, DeleteTransaction, ContainsTransaction, IterateBlockHashes, GetBlockDigest, PutBlock, DeleteBlock, ContainsBlock, GetBlockStates, and SetBlockStates methods). Other methods are just the same as DefaultStore. And also RocksDBStoreTest is skipped in environments where RocksDB is not available for test compatibility.

@earlbread earlbread self-assigned this Feb 7, 2020
@earlbread earlbread changed the title Implement RocksDBStore [WIP]Implement RocksDBStore Feb 7, 2020
Libplanet.RocksDBStore/RocksDBStore.cs Outdated Show resolved Hide resolved
Libplanet.RocksDBStore/RocksDBStore.cs Outdated Show resolved Hide resolved
@dahlia dahlia added the storage Related to storage (Libplanet.Store) label Feb 7, 2020
@earlbread earlbread changed the title [WIP]Implement RocksDBStore Implement RocksDBStore Feb 7, 2020
Copy link
Member

@longfin longfin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests seem to fail.

CHANGES.md Outdated Show resolved Hide resolved
@earlbread earlbread force-pushed the rocks-db branch 2 times, most recently from 6677e32 to 9f49cee Compare February 11, 2020 10:55
longfin
longfin previously approved these changes Feb 11, 2020
limebell
limebell previously approved these changes Feb 12, 2020
CHANGES.md Outdated Show resolved Hide resolved
moreal
moreal previously approved these changes Feb 12, 2020
limebell
limebell previously approved these changes Feb 12, 2020
@codecov
Copy link

codecov bot commented Feb 12, 2020

Codecov Report

Merging #789 into master will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #789      +/-   ##
==========================================
+ Coverage   86.65%   86.69%   +0.04%     
==========================================
  Files         227      227              
  Lines       19654    19654              
==========================================
+ Hits        17031    17039       +8     
+ Misses       1414     1405       -9     
- Partials     1209     1210       +1
Impacted Files Coverage Δ
Libplanet.Tests/Store/StoreTest.cs 98.38% <ø> (ø) ⬆️
Libplanet/Store/BaseStore.cs 80.64% <ø> (ø) ⬆️
Libplanet/Store/DefaultStore.cs 85.54% <ø> (+0.99%) ⬆️
Libplanet/Net/Swarm.cs 86.34% <0%> (+0.16%) ⬆️

@earlbread earlbread merged commit 3ef66e3 into planetarium:master Feb 12, 2020
@earlbread earlbread deleted the rocks-db branch February 12, 2020 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
storage Related to storage (Libplanet.Store)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RocksDB implementation of IStore
5 participants