Skip to content

Commit

Permalink
#1588 decrease leveldb ram usage for snapshot hash computation
Browse files Browse the repository at this point in the history
  • Loading branch information
olehnikolaiev committed Dec 19, 2023
1 parent f7c560a commit 75d9a38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libdevcore/LevelDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ leveldb::ReadOptions LevelDB::defaultSnapshotReadOptions() {
leveldb::Options LevelDB::defaultSnapshotDBOptions() {
leveldb::Options options;
options.create_if_missing = true;
options.max_open_files = c_maxOpenLeveldbFiles;
// options.max_open_files = c_maxOpenLeveldbFiles;
options.max_open_files = 25;
return options;
}

Expand Down

0 comments on commit 75d9a38

Please sign in to comment.