Bug #38251 Useless external queries should be ignored

Submitted: 21 Jul 2008 0:29 Modified: 21 Jul 2008 13:13
Reporter: Federico Razzoli (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S5 (Performance)
Version:5.0.51 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[21 Jul 2008 0:29] Federico Razzoli
Description:
When using a derived table, the external query in some cases may be useless. In my opinion, the optimizer should detect those cases and ignore useless queries. See the examples below.

How to repeat:
EXPLAIN SELECT t.* FROM (SELECT * FROM INFORMATION_SCHEMA.CHARACTER_SETS) AS t

EXPLAIN SELECT t.* FROM (SELECT * FROM INFORMATION_SCHEMA.CHARACTER_SETS ORDER BY 2) AS t ORDER BY 1
[21 Jul 2008 13:13] Valeriy Kravchuk
Thank you for a reasonable feature request.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 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.