Please refer to the Data Compression page for a discussion of the advantages of in-memory and persistent database compression.
In-Memory Database Compression
For Java in-memory database applications the Database.Parameters for managing data compression are
compressionLevel
,compressionMask
andexpectedCompressionRatio
which have the same effect as the correspondingmode_mask
parameters for C applications. Please see the C API Data Compression page for details. The mode bitMCO_DB_INMEMORY_COMPRESSION
is automatically applied to the mode mask if some non default (not -1)CompressionLevel
is set. So it is not necessary to set this flag to fieldMode
manually.Persistent Database Compression
It is not currently possible to enable persistent database compression on Windows systems. Note that eXtremeDB implements LZ compression in two special file system libraries:
mcofu98zip
andmcofu98ziplog
which are only available on Unix systems like Linux, MacOS and Solaris. To enable persistent database compression in Java on Unix-Linux systems, TheDatabase.MCO_CFG_DISK_COMPRESSION
must be passed to the constructor of the Java Database class. This action forces the JNI wrapper to load librarymcofu98zip
. Then thecompressionLevel
andmaxDiskDatabaseSize
fields of the Database.Parameters class manage compression.