Bug #39715 | performance regression of auto_increment | ||
---|---|---|---|
Submitted: | 29 Sep 2008 6:47 | Modified: | 20 Oct 2008 14:23 |
Reporter: | Yoshiaki Tajika (Basic Quality Contributor) | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.0 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | qc |
[29 Sep 2008 6:47]
Yoshiaki Tajika
[16 Oct 2008 16:17]
MySQL Verification Team
I couldn't repeat this issue on Windows. I will test on Linux.
[20 Oct 2008 14:23]
MySQL Verification Team
Thank you for the bug report. I couldn't repeat this issue the difference I found is < 1sc between 5.0.15 and 5.0.67: mysql> select count(*) from t1; +----------+ | count(*) | +----------+ | 1048576 | +----------+ 1 row in set (0.00 sec) mysql> create table t2(c1 int primary key auto_increment); Query OK, 0 rows affected (0.04 sec) mysql> insert t2 select null from t1; Query OK, 1048576 rows affected (5.60 sec) Records: 1048576 Duplicates: 0 Warnings: 0 mysql> mysql> show variables like "%version%"; +-------------------------+------------------------------------------+ | Variable_name | Value | +-------------------------+------------------------------------------+ | protocol_version | 10 | | version | 5.0.15-standard | | version_comment | MySQL Community Edition - Standard (GPL) | | version_compile_machine | i686 | | version_compile_os | pc-linux-gnu | +-------------------------+------------------------------------------+ 5 rows in set (0.00 sec) ********************************************************************* mysql> select count(*) from t1; +----------+ | count(*) | +----------+ | 1048576 | +----------+ 1 row in set (0.00 sec) mysql> create table t2(c1 int primary key auto_increment); Query OK, 0 rows affected (0.00 sec) mysql> insert t2 select null from t1; Query OK, 1048576 rows affected (6.19 sec) Records: 1048576 Duplicates: 0 Warnings: 0 mysql> show variables like "%version%"; +-------------------------+------------------------------+ | Variable_name | Value | +-------------------------+------------------------------+ | protocol_version | 10 | | version | 5.0.67 | | version_comment | MySQL Community Server (GPL) | | version_compile_machine | i686 | | version_compile_os | pc-linux-gnu | +-------------------------+------------------------------+ 5 rows in set (0.00 sec)