Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » UltraLiteJ » UltraLiteJ Reference » UltraLiteJ API reference » ConfigPersistent interface


setCacheSize method

Sets the cache size of the database, in bytes.

ConfigPersistent ConfigPersistent.setCacheSize(
  int cache_size
) throws ULjException
  • cache_size   The cache size. The default cache size is 20480 (20KB) on all platforms.


The cache size determines the number of database pages resident in the page cache. Increasing the size means less reading and writing of database pages, at the expense of increased time to locate pages in the cache.


This ConfigPersistent with the cache size set.