June 2001
Intermediate to advanced
688 pages
19h 18m
English
import com.sleepycat.db.*; public int set_cachesize(int gbytes, int bytes, int ncache) throws DbException;
Set the size of the database’s shared memory buffer pool—that is, the cache—to gbytes gigabytes plus bytes. The cache should be the size of the normal working data set of the application, with some small amount of additional memory for unusual situations. (Note: The working set is not the same as the number of simultaneously referenced pages, and should be quite a bit larger!)
The default cache size is 256KB, and may not be specified as less than 20KB.Any cache size less than 500MB is automatically increased by 25% to account for buffer pool overhead; cache sizes larger than 500MB are used as specified. For ...