InnoDB table:
CREATE TABLE `TABLE_InnoDB` (
`id1` tinyint(3) unsigned NOT NULL,
`id2` mediumint(8) unsigned NOT NULL DEFAULT '0',
`id3` mediumint(8) unsigned NOT NULL DEFAULT '0',
`id4` tinyint(3) unsigned NOT NULL,
`p0` blob NOT NULL,
`p1` blob NOT NULL,
`p2` blob NOT NULL,
`p3` blob NOT NULL,
`p4` blob NOT NULL,
`p5` blob NOT NULL,
`p6` blob NOT NULL,
`p7` blob NOT NULL,
`p8` blob NOT NULL,
`p9` blob NOT NULL,
PRIMARY KEY (`id2`,`id3`,`id4`,`id1`) KEY_BLOCK_SIZE=1024
) ENGINE=InnoDB DEFAULT CHARSET=ascii ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=2;
With 1000 rows it takes 79,52 MB (83 378 176)
On MyISAM engine:
CREATE TABLE `TABLE_MyISAM` (
`id1` tinyint(3) unsigned NOT NULL,
`id2` mediumint(8) unsigned NOT NULL DEFAULT '0',
`id3` mediumint(8) unsigned NOT NULL DEFAULT '0',
`id4` tinyint(3) unsigned NOT NULL,
`p0` blob NOT NULL,
`p1` blob NOT NULL,
`p2` blob NOT NULL,
`p3` blob NOT NULL,
`p4` blob NOT NULL,
`p5` blob NOT NULL,
`p6` blob NOT NULL,
`p7` blob NOT NULL,
`p8` blob NOT NULL,
`p9` blob NOT NULL,
PRIMARY KEY (`id2`,`id3`,`id4`,`id1`) KEY_BLOCK_SIZE=1024
) ENGINE=MyISAM DEFAULT CHARSET=ascii ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE=2;
this table takes only 12,02 MB (12 608 756) - that is 6.6 times less. Is it a bug? Can i reduce table size on InnoDB engine (without compression use)?
Server: Percona 5.6.19-67.0
InnoDB table dump: [URL]http://rghost.ru/59332840[/URL]
MyISAM table dump: [URL]http://rghost.ru/59332879[/URL]