Bug #54799 | optimizer does not pick the index | ||
---|---|---|---|
Submitted: | 25 Jun 2010 8:50 | Modified: | 25 Jun 2010 10:51 |
Reporter: | Aleksandar Ivanisevic | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 5.5.3-m3 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[25 Jun 2010 8:50]
Aleksandar Ivanisevic
[25 Jun 2010 9:18]
Valeriy Kravchuk
Please, upload the dump.
[25 Jun 2010 9:27]
Aleksandar Ivanisevic
uploaded to the ftp server
[25 Jun 2010 10:41]
Valeriy Kravchuk
This is what I've got on current mysql-trunk: openxs@ubuntu:/home2/openxs/dbs/trunk$ bin/mysql --no-defaults -uroot testWelcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.5.6-m3-debug Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> exit Bye openxs@ubuntu:/home2/openxs/dbs/trunk$ bin/mysql --no-defaults -uroot test < ~/bug54799.sql openxs@ubuntu:/home2/openxs/dbs/trunk$ bin/mysql --no-defaults -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.5.6-m3-debug Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> explain select count(*) from db_ct_schedule_item where item_id_number = 'ERR' and -> start_date = '20100626' and item_type = 'ACTIVITY' and start_time = '2010-06-26 '> 04:01:00.0' and end_time = '2010-06-27 01:43:00.0' and report_base = 'JFK' and end_base = -> 'JFK' ; +----+-------------+---------------------+------+---------------------------+---------------------------+---------+-------------+------+-------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+---------------------+------+---------------------------+---------------------------+---------+-------------+------+-------------+ | 1 | SIMPLE | db_ct_schedule_item | ref | idx_db_ct_schedule_item_1 | idx_db_ct_schedule_item_1 | 41 | const,const | 1324 | Using where | +----+-------------+---------------------+------+---------------------------+---------------------------+---------+-------------+------+-------------+ 1 row in set (0.40 sec) So, I'd suggest to wait for the official release of 5.5.5 and then check again.
[25 Jun 2010 10:51]
Aleksandar Ivanisevic
can you tell me when is 5.5.5 scheduled to be released? I have already upgraded my test databases and this is affecting their performance severely, so I'll have to decide whether to downgrade or not.