Bug #4484 Optimizer chooses wrong Index with ORDER BY
| Submitted: | 9 Jul 2004 14:00 | Modified: | 12 Aug 2004 0:32 |
|---|---|---|---|
| Reporter: | Christian Schrader | Email Updates: | |
| Status: | Won't fix | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 4.0.20 | OS: | Linux (Linux) |
| Assigned to: | CPU Architecture: | Any |
[9 Jul 2004 14:00]
Christian Schrader
[13 Jul 2004 2:29]
Matthew Lord
Hi, I was unable to repeat this using 4.1.3 or 4.0.20-max. Am I missing anything? root@localhost:bug4484~> select version(); +------------+ | version() | +------------+ | 4.0.20-max | +------------+ 1 row in set (0.00 sec) root@localhost:bug4484~> desc SELECT * FROM test WHERE categoryID=1 ORDER BY clicks DESC LIMIT 1; +-------+------+----------------------------+------------+---------+-------+------+-------------+ | table | type | possible_keys | key | key_len | ref | rows | Extra | +-------+------+----------------------------+------------+---------+-------+------+-------------+ | test | ref | productName_idx,clicks_idx | clicks_idx | 3 | const | 3 | Using where | +-------+------+----------------------------+------------+---------+-------+------+-------------+ 1 row in set (0.00 sec) Best Regards
[13 Jul 2004 10:47]
Hartmut Holzgraefe
Verified with 4.0.20, 4.1.3 and 5.0-bk work as expected though ....
[12 Aug 2004 0:32]
Brian Aker
Hi! We will be releasing 4.1 soon as production/GA and it will resolve this issue.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.041 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.