Berkeley DB: DbInfo::set_cachesize
Полезная информация

DbInfo::set_cachesize


#include <db_cxx.h>

void DbInfo::set_cachesize(size_t);

Description

Set the suggested maximum size of the memory pool cache, in bytes. It is an error to specify both an mp_info parameter and a non-zero db_cachesize to Db::open.

Note, the minimum number of pages in the cache should be no less than 10, and the access methods will fail if an insufficiently large cache is specified. In addition, for applications that exhibit strong locality in their data access patterns, increasing the size of the cache can significantly improve application performance.

For information on tuning the Berkeley DB cache size, see Selecting a cache size.

Class

DbInfo

See Also

DbInfo::set_bt_compare, DbInfo::set_bt_maxkey, DbInfo::set_bt_minkey, DbInfo::set_bt_prefix, DbInfo::set_cachesize, DbInfo::set_compare, DbInfo::set_flags, DbInfo::set_h_ffactor, DbInfo::set_h_hash, DbInfo::set_h_nelem, DbInfo::set_lorder, DbInfo::set_malloc, DbInfo::set_pagesize, DbInfo::set_re_delim, DbInfo::set_re_len, DbInfo::set_re_pad and DbInfo::set_re_source.