Bug #10815 Sub-queries failure when using GROUP BY
| Submitted: | 24 May 2005 7:36 | Modified: | 26 Mar 2012 19:34 |
|---|---|---|---|
| Reporter: | Mark Papadakis | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
| Version: | 4.1.12 | OS: | Linux (Linux) |
| Assigned to: | Roy Lyseng | CPU Architecture: | Any |
| Tags: | semijoin | ||
[24 May 2005 7:36]
Mark Papadakis
[29 May 2005 0:54]
Jorge del Conde
Thank you for your bug report. I was able to reproduce this with 4.1.13 from bk:
mysql> explain SELECT item_id FROM test.item_data WHERE section_id IN (166) AND (
-> (field_id = 281 AND data REGEXP '^a') ) GROUP BY item_id HAVING COUNT(*) = 1
-> ;
+----+-------------+-----------+------+---------------+---------+---------+-------+------+-------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+-----------+------+---------------+---------+---------+-------+------+-------------+
| 1 | SIMPLE | item_data | ref | PRIMARY | PRIMARY | 4 | const | 12 | Using where |
+----+-------------+-----------+------+---------------+---------+---------+-------+------+-------------+
1 row in set (0.00 sec)
[29 May 2005 15:35]
Jorge del Conde
Hi, Currently, there is no optimization done for IN subqueries. We are aware of this problem and are working hard to enable this optimization. This problem will not be fixed in our 4.1 tree, but you can expect it to be part of our future 5.1 release. Thanks!
[5 Oct 2005 12:51]
Mark Papadakis
I was wondering whether any progress was made in fixing this bug. Is it currently fixed in any mySQL version, including beta/alpha releases?
[26 Mar 2012 19:34]
Paul DuBois
Noted in 5.6.5 changelog. Several subquery performance issues were resolved through the implementation of semi-join subquery optimization strategies.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.056 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.