i use mysql5.0.77 ,due to some reason ,i have to upgrade my DB,after benchmarking,i choose percona5.5,but i do some test on
same machine before and after upgrade ,it seems percona5.5 slow than mysql5.0.77 in inserting data and changing table schema, why? i suppose percona5.5 will faster than old version mysql
mysql> show create table test_me\G
*************************** 1. row ***************************
Table: test_me
Create Table: CREATE TABLE test_me
(
id
int(11) DEFAULT NULL,
name
varchar(20) DEFAULT NULL,
addr
varchar(30) DEFAULT NULL,
gender
enum(‘F’,‘M’,‘UNKNOWN’) DEFAULT NULL,
comment
varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
on mysql5.0.77
mysql> call big_table(20000000);
Query OK, 1 row affected (11 min 50.71 sec)
mysql> alter table test_me modify column gender enum(‘F’,‘M’,‘UNKNOWN’);
Query OK, 20000000 rows affected (18.44 sec)
Records: 20000000 Duplicates: 0 Warnings: 0
mysql> alter table test_me engine=innodb;
Query OK, 20000000 rows affected (1 min 55.18 sec)
Records: 20000000 Duplicates: 0 Warnings: 0
mysql> alter table test_me modify column gender enum(‘F’,‘M’);
Query OK, 20000000 rows affected (2 min 35.46 sec)
Records: 20000000 Duplicates: 0 Warnings: 0
on percona5.5
mysql> call big_table(20000000);
Query OK, 1 row affected (16 min 36.40 sec)
mysql> alter table test_me modify column gender enum(‘F’,‘M’,‘UNKNOWN’);
Query OK, 0 rows affected (0.00 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql> alter table test_me engine=innodb;
Query OK, 20000000 rows affected (2 min 58.02 sec)
Records: 20000000 Duplicates: 0 Warnings: 0
mysql> alter table test_me modify column gender enum(‘F’,‘M’);
Query OK, 20000000 rows affected (3 min 55.66 sec)
Records: 20000000 Duplicates: 0 Warnings: 0