Berkeley DB: DbInfo.set_cachesize

ee,hash,hashing,transaction,transactions,locking,logging,access method,access me thods,java,C,C++">


import com.sleepycat.db.*;

public void set_cachesize(long cachesize);


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

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.



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.