Row format
As a default, the DYNAMIC row format is used when creating InnoDB tables. We can configure innodb_default_row_format to use row formats other than DYNAMIC. We can also specify the ROW_FORMAT option explicitly in a CREATE TABLE or ALTER TABLE statement.
The row formats include COMPACT, DYNAMIC, and COMPRESSED. They decrease row storage space at the cost of increased CPU use for some operations. For the average workload, which is limited by the cache hit rates and disk speed, it will be faster. If it is limited by the CPU speed, it will be slower.
The row formats also optimize the CHAR data type column storage when it uses a variable length character set. With the REDUNDANT row format, the CHAR(N) column value occupies N times the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access