From 502d1e7e6c19e0446d443501976222fb52baf6d6 Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Fri, 5 Mar 2021 13:48:20 +0900 Subject: [PATCH] Adjust docs for PR #1194 https://github.com/planetarium/libplanet/pull/1194 --- CHANGES.md | 2 +- Libplanet.RocksDBStore/RocksDBStore.cs | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 2ed0840374..5a4d05dd15 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -118,7 +118,7 @@ Released on March 30, 2021. of the database, according to its epoch unit, which is its Unix timestamp. Every epoch is divided by certain seconds, configured by `RocksDBStore()` constructor's `txEpochUnitSeconds` and `blockEpochUnitSeconds` parameters - (86400 by default). [[#1183], [#1194]] + (86,400 by default). [[#1183], [#1194]] - (Libplanet.RocksDBStore) Continue on partitioning of database, `RocksDBStore()` is manage database connection by LRU Cache. The max size of connection cache is configured by `RocksDBStore()` diff --git a/Libplanet.RocksDBStore/RocksDBStore.cs b/Libplanet.RocksDBStore/RocksDBStore.cs index 21ad396e81..e01418d1d3 100644 --- a/Libplanet.RocksDBStore/RocksDBStore.cs +++ b/Libplanet.RocksDBStore/RocksDBStore.cs @@ -16,8 +16,9 @@ namespace Libplanet.RocksDBStore { /// - /// The RocksDB implementation. - /// This stores data in the RocksDB. + /// The RocksDB implementation, + /// which is more production-ready than . + /// This stores data in the RocksDB with multiple partitions under the hood. /// /// public class RocksDBStore : BaseStore @@ -76,10 +77,10 @@ public class RocksDBStore : BaseStore /// option. /// The number to configure max_log_file_size /// RocksDB option. - /// The number of Transaction to store in DB - /// for each epoch. 86400 by default. - /// The number of block to store in DB - /// for each epoch. 86400 by default. + /// The interval between epochs of DB partions containing + /// transactions. 86,400 seconds by default. + /// The interval between epochs of DB partions + /// containing blocks. 86,400 seconds by default. /// The capacity of the block and transaction /// RocksDB connection cache. 100 by default. public RocksDBStore(