Skip to content

Commit 48d9b97

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public MerkleTree(String treeName) throws RocksDBException {
100100
.setCreateIfMissing(true)
101101
.setCreateMissingColumnFamilies(true)
102102
.setUseDirectReads(true)
103-
.setAllowMmapReads(true)
103+
.setAllowMmapReads(false)
104104
.setUseDirectIoForFlushAndCompaction(true)
105105
.setMaxOpenFiles(100)
106106
.setMaxBackgroundJobs(1)

0 commit comments

Comments
 (0)