[MCOL-4584] Significant performance degradation when UNION ALL is used in an outer select, compared to in a subquery. Created: 2021-03-05 Updated: 2022-10-05 Resolved: 2022-06-23 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | MDB Plugin |
| Affects Version/s: | 5.5.1 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Gagan Goel (Inactive) | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | mcs_cs, performance | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Epic Link: | ColumnStore Performance Improvements | ||||||||||||||||||||||||
| Description |
|
There appears to be a significant difference in the query execution times between the query Q1:
And query Q2:
Here, wide_table is a table with 100 INT columns. As can be seen, Q1 is 60x slower than Q2. The difference is, Q2 runs using the ColumnStore select handler whereas Q1 does not. Q1's execution path calls mysql_union() in sql/sql_union.cc which currently does not support select handler. This needs to be fixed. |
| Comments |
| Comment by Gagan Goel (Inactive) [ 2021-03-08 ] |
|
|
| Comment by alexey vorovich (Inactive) [ 2022-06-23 ] |
|
dup to 4901 |