14.9.1.6 Compression for OLTP Workloads (original) (raw)

14.9.1.6 Compression for OLTP Workloads

Traditionally, the InnoDB compression feature was recommended primarily for read-only or read-mostlyworkloads, such as in adata warehouse configuration. The rise of SSD storage devices, which are fast but relatively small and expensive, makes compression attractive also forOLTP workloads: high-traffic, interactive websites can reduce their storage requirements and their I/O operations per second (IOPS) by using compressed tables with applications that do frequentINSERT,UPDATE, andDELETE operations.

Configuration options introduced in MySQL 5.6 let you adjust the way compression works for a particular MySQL instance, with an emphasis on performance and scalability for write-intensive operations:

Because working with compressed data sometimes involves keeping both compressed and uncompressed versions of a page in memory at the same time, when using compression with an OLTP-style workload, be prepared to increase the value of theinnodb_buffer_pool_size configuration option.