Skip to content

Commit

Permalink
enlarge BerkeleyDB cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
miodragpop committed Mar 31, 2021
1 parent cdb682a commit c253cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bool CDBEnv::Open(const fs::path& pathIn)
nEnvFlags |= DB_PRIVATE;

dbenv->set_lg_dir(pathLogDir.string().c_str());
dbenv->set_cachesize(0, 0x100000, 1); // 1 MiB should be enough for just the wallet
dbenv->set_cachesize(0, 128 * 1024 * 1024, 1); // 128 MiB (previous default 1 MiB)
dbenv->set_lg_bsize(0x10000);
dbenv->set_lg_max(1048576);
dbenv->set_lk_max_locks(40000);
Expand Down

0 comments on commit c253cc7

Please sign in to comment.