Skip to content

Commit 4a7711d

Browse files
committed
Refactor MerkleTree configuration for improved memory management and performance optimization
1 parent dc033dd commit 4a7711d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/io/pwrlabs/database/rocksdb/MerkleTree.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public MerkleTree(String treeName) throws RocksDBException {
109109
.setMaxTotalWalSize(250L * 1024 * 1024) // total WAL across all CFs ≤ 250 MB
110110
.setWalSizeLimitMB(250) // (optional) per-WAL-file soft limit
111111
.setKeepLogFileNum(3); // keep at most 3 WAL files, regardless of age/size
112+
112113
// 2) Table format: no cache, small blocks
113114
BlockBasedTableConfig tableConfig = new BlockBasedTableConfig()
114115
.setNoBlockCache(true)

0 commit comments

Comments
 (0)