4I1Berkeley DB: DbInfo::set_cachesize[P

DbInfo::set_cachesize





#include <db_cxx.h>

#void DbInfo::set_cachesize(size_t);





Description



BSet the suggested maximum size of the memory pool cache, in bytes.IIt is an error to specify both an mp_info parameter and a non-zeroIdb_cachesize to Db::open.

INote, the minimum number of pages in the cache should be no less than 10,Dand the access methods will fail if an insufficiently large cache isspecified.HIn addition, for applications that exhibit strong locality in their dataKaccess patterns, increasing the size of the cache can significantly improveapplication performance.

9For information on tuning the Berkeley DB cache size, seeASelecting a cache size.



Class

4DbInfo



See Also

NDbInfo::set_bt_compare,LDbInfo::set_bt_maxkey,LDbInfo::set_bt_minkey,LDbInfo::set_bt_prefix,DbInfo::set_cachesize,HDbInfo::set_compare,DDbInfo::set_flags,LDbInfo::set_h_ffactor,FDbInfo::set_h_hash,HDbInfo::set_h_nelem,FDbInfo::set_lorder,FDbInfo::set_malloc,JDbInfo::set_pagesize,JDbInfo::set_re_delim,FDbInfo::set_re_len,EDbInfo::set_re_padandLDbInfo::set_re_source.
ÿÿ