Bug #53773 | InnoDB extremely slow when compared with MyISAM for a simple stored procedure | ||
---|---|---|---|
Submitted: | 19 May 2010 4:14 | Modified: | 19 May 2010 4:54 |
Reporter: | Roel Van de Paar | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S1 (Critical) |
Version: | 5.1.46 | OS: | Any |
Assigned to: | Roel Van de Paar | CPU Architecture: | Any |
[19 May 2010 4:14]
Roel Van de Paar
[19 May 2010 4:36]
Roel Van de Paar
mysql> set @@global.innodb_flush_log_at_trx_commit=0; Query OK, 0 rows affected (0.00 sec) mysql> CALL setuplarge(1000000); /* InnoDB */ Query OK, 1 row affected (48.67 sec)
[19 May 2010 4:54]
Roel Van de Paar
Not a bug. Problem is that it's writing each row individually. Same problem can be created on MyISAM when using FLUSH TABLES after each row insert. Painful, but ACID compliant. http://dev.mysql.com/doc/refman/5.1/en/innodb-parameters.html#sysvar_innodb_flush_log_at_t...