Tune some other DB cache sizes.

This commit is contained in:
JoelKatz
2013-03-22 08:09:37 -07:00
parent 64d8f106db
commit 2c128d2ae0
3 changed files with 10 additions and 2 deletions

View File

@@ -184,6 +184,10 @@ void Application::setup()
theApp->getHashNodeDB()->getDB()->executeSQL(boost::str(boost::format("PRAGMA cache_size=-%d;") %
(theConfig.getSize(siHashNodeDBCache) * 1024)));
theApp->getLedgerDB()->getDB()->executeSQL(boost::str(boost::format("PRAGMA cache_size=-%d;") %
(theConfig.getSize(siTxnDBCache) * 1024)));
theApp->getTxnDB()->getDB()->executeSQL(boost::str(boost::format("PRAGMA cache_size=-%d;") %
(theConfig.getSize(siLgrDBCache) * 1024)));
//
// Allow peer connections.