Bug #69588 | MyISAM to InnoDB compressed slower than MyISAM to InnoDB, Then InnoDB to Compres | ||
---|---|---|---|
Submitted: | 26 Jun 2013 15:45 | Modified: | 21 Jul 2014 20:22 |
Reporter: | Joffrey MICHAIE | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.5.31, 5.6.21 | OS: | Linux (RHEL 6.4) |
Assigned to: | CPU Architecture: | Any | |
Tags: | compressed, innodb, myisam |
[26 Jun 2013 15:45]
Joffrey MICHAIE
[21 Jul 2014 20:22]
Sveta Smirnova
Thank you for the report. Verified as described. mysql> SHOW TABLE STATUS; +------------+--------+---------+------------+---------+----------------+-------------+-------------------+--------------+-----------+----------------+---------------------+---------------------+------------+-------------------+----------+----------------+---------+ | Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment | +------------+--------+---------+------------+---------+----------------+-------------+-------------------+--------------+-----------+----------------+---------------------+---------------------+------------+-------------------+----------+----------------+---------+ | bigt_rand | MyISAM | 10 | Fixed | 597152 | 41 | 24483232 | 11540474045136895 | 10052608 | 0 | 2097153 | 2014-07-21 22:56:25 | 2014-07-21 22:59:17 | NULL | latin1_swedish_ci | NULL | | | | bigt_rand2 | MyISAM | 10 | Fixed | 597152 | 41 | 85983232 | 11540474045136895 | 35244032 | 61500000 | 2097153 | 2014-07-21 21:20:08 | 2014-07-21 22:57:30 | NULL | latin1_swedish_ci | NULL | | | | +------------+--------+---------+------------+---------+----------------+-------------+-------------------+--------------+-----------+----------------+---------------------+---------------------+------------+-------------------+----------+----------------+---------+ 2 rows in set (0.00 sec) mysql> ALTER TABLE bigt_rand ENGINE=InnoDB; Query OK, 597152 rows affected (4 min 6.30 sec) Records: 597152 Duplicates: 0 Warnings: 0 mysql> \! ls -lh /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand* -rw-rw---- 1 sveta sveta 8.4K Jul 21 21:20 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand2.frm -rw-rw---- 1 sveta sveta 82M Jul 21 22:57 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand2.MYD -rw-rw---- 1 sveta sveta 34M Jul 21 22:57 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand2.MYI -rw-rw---- 1 sveta sveta 8.4K Jul 21 23:01 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand.frm -rw-rw---- 1 sveta sveta 68M Jul 21 23:05 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand.ibd mysql> ALTER TABLE bigt_rand ROW_FORMAT=COMPRESSED; Query OK, 0 rows affected (4 min 1.65 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> \! ls -lh /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand* -rw-rw---- 1 sveta sveta 8.4K Jul 21 21:20 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand2.frm -rw-rw---- 1 sveta sveta 82M Jul 21 22:57 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand2.MYD -rw-rw---- 1 sveta sveta 34M Jul 21 22:57 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand2.MYI -rw-rw---- 1 sveta sveta 8.4K Jul 21 23:07 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand.frm -rw-rw---- 1 sveta sveta 18M Jul 21 23:11 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand.ibd mysql> ALTER TABLE bigt_rand2 ENGINE=InnoDB ROW_FORMAT=COMPRESSED; Query OK, 597152 rows affected (5 min 34.86 sec) Records: 597152 Duplicates: 0 Warnings: 0 mysql> \! ls -lh /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand* -rw-rw---- 1 sveta sveta 8.4K Jul 21 23:11 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand2.frm -rw-rw---- 1 sveta sveta 36M Jul 21 23:17 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand2.ibd -rw-rw---- 1 sveta sveta 8.4K Jul 21 23:07 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand.frm -rw-rw---- 1 sveta sveta 18M Jul 21 23:11 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand.ibd mysql> ALTER TABLE bigt_rand2 ENGINE=InnoDB ROW_FORMAT=COMPRESSED; Query OK, 0 rows affected (4 min 8.80 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> \! ls -lh /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand* -rw-rw---- 1 sveta sveta 8.4K Jul 21 23:18 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand2.frm -rw-rw---- 1 sveta sveta 18M Jul 21 23:22 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand2.ibd -rw-rw---- 1 sveta sveta 8.4K Jul 21 23:07 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand.frm -rw-rw---- 1 sveta sveta 18M Jul 21 23:11 /home/sveta/src/mysql-5.6/mysql-test/var/mysqld.1/data/test/bigt_rand.ibd