Bug #7888 | optimization request for query UNION query LIMIT statements... | ||
---|---|---|---|
Submitted: | 13 Jan 2005 21:49 | Modified: | 22 Jan 2014 20:13 |
Reporter: | Matthew Murphy | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S4 (Feature request) |
Version: | 4.1x, 5.x, etc. | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[13 Jan 2005 21:49]
Matthew Murphy
[12 Jun 2012 14:51]
Valeriy Kravchuk
For UNION, in general case, we have to get data from both SELECTs and then remove duplicates, and only then we can apply LIMIT. We have some ideas on how to improve this, see http://forge.mysql.com/worklog/task.php?id=1762. For UNION ALL (where "streaming" is possible) we have another WL, http://forge.mysql.com/worklog/task.php?id=1763.