mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-03 09:25:51 +00:00
Tweak the sqlite cache sizing.
This commit is contained in:
@@ -176,7 +176,7 @@ void Application::setup()
|
||||
mLedgerMaster.setMinValidations(theConfig.VALIDATION_QUORUM);
|
||||
|
||||
theApp->getHashNodeDB()->getDB()->executeSQL(boost::str(boost::format("PRAGMA cache_size=-%d;") %
|
||||
(theConfig.getSize(siDBCache) * 1024)));
|
||||
(theConfig.getSize(siHashNodeDBCache) * 1024)));
|
||||
|
||||
//
|
||||
// Allow peer connections.
|
||||
|
||||
@@ -497,7 +497,7 @@ int Config::getSize(SizedItemName item)
|
||||
{ siLedgerAge, { 30, 60, 120, 300, 600 } },
|
||||
{ siLineCacheSize, { 8192, 32768, 131072, 1048576, 0 } },
|
||||
{ siLineCacheAge, { 500, 600, 1800, 3600, 7200 } },
|
||||
{ siDBCache, { 8, 12, 24, 64, 96 } },
|
||||
{ siHashNodeDBCache, { 24, 48, 64, 128, 256 } },
|
||||
};
|
||||
|
||||
for (int i = 0; i < (sizeof(sizeTable) / sizeof(SizedItem)); ++i)
|
||||
|
||||
@@ -65,7 +65,7 @@ enum SizedItemName
|
||||
siLedgerFetch,
|
||||
siLineCacheSize,
|
||||
siLineCacheAge,
|
||||
siDBCache
|
||||
siHashNodeDBCache
|
||||
};
|
||||
|
||||
struct SizedItem
|
||||
|
||||
Reference in New Issue
Block a user