Bug #40006 | Performance depends on functions used? | ||
---|---|---|---|
Submitted: | 13 Oct 2008 15:04 | Modified: | 22 Oct 2008 10:56 |
Reporter: | Andre Timmer | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S5 (Performance) |
Version: | 5.0.18 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[13 Oct 2008 15:04]
Andre Timmer
[13 Oct 2008 15:23]
MySQL Verification Team
Thank you for the bug report. Could you please test with latest released version 5.0.18 is quite older. Thanks.
[22 Oct 2008 10:56]
Andre Timmer
PC: Windows 2000 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.0.67-community MySQL Community Edition (GPL) .. creating table and procedure mysql> call sp_test(); Query OK, 0 rows affected (4.19 sec) mysql> select concat('Rows inserted: ', count(*)) info from profile2; +----------------------+ | info | +----------------------+ | Rows inserted: 80000 | +----------------------+ 1 row in set (0.03 sec) mysql> -- slow select mysql> select context -> , substr(value, 1, 6) yyyymm -> , count(*) aantal -> from profile2 -> group by 1,2; +----------------------+--------+--------+ | context | yyyymm | aantal | +----------------------+--------+--------+ | cn=blue,ou=org,c=nl | 200809 | 10000 | | cn=bob,ou=org,c=nl | 200809 | 10000 | | cn=chris,ou=org,c=nl | 200809 | 10000 | | cn=frans,ou=org,c=nl | 200809 | 10000 | | cn=jane,ou=org,c=nl | 200809 | 10000 | | cn=lisa,ou=org,c=nl | 200809 | 10000 | | cn=marie,ou=org,c=nl | 200809 | 10000 | | cn=rene,ou=org,c=nl | 200809 | 10000 | +----------------------+--------+--------+ 8 rows in set (0.38 sec) mysql> select context -> , substr(concat(value, ' '), 1, 6) yyyymm -> , count(*) aantal -> from profile2 -> group by 1,2; +----------------------+--------+--------+ | context | yyyymm | aantal | +----------------------+--------+--------+ | cn=blue,ou=org,c=nl | 200809 | 10000 | | cn=bob,ou=org,c=nl | 200809 | 10000 | | cn=chris,ou=org,c=nl | 200809 | 10000 | | cn=frans,ou=org,c=nl | 200809 | 10000 | | cn=jane,ou=org,c=nl | 200809 | 10000 | | cn=lisa,ou=org,c=nl | 200809 | 10000 | | cn=marie,ou=org,c=nl | 200809 | 10000 | | cn=rene,ou=org,c=nl | 200809 | 10000 | +----------------------+--------+--------+ 8 rows in set (0.45 sec) Difference is negligable on Windows 2000 using MySQL 5.0.67 so i'm closing this call.