[MCOL-3664] Subquery wrapping affects performance Created: 2019-12-10 Updated: 2020-03-25 Resolved: 2020-03-25 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.4.1 |
| Fix Version/s: | 1.4.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Andrew Hutchings (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Sprint: | 2020-2, 2020-3, 2020-4, 2020-5 | ||||||||
| Description |
|
Wrapping a query in a subquery seems to impact performance in the 1.4 tree. See attached image for an example. Marked as to be investigated for 1.4.3 for now. |
| Comments |
| Comment by Roman [ 2020-02-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
My tests showed that regression has been fixed with | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2020-03-25 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Build verified: 1.4.4-1 source /root/ColumnStore/buildColumnstoreFromGithubSource/server MENT-401: Include Aria and S3 index length limit increase in ES 10.4 Cherry-picked from: 98ea611940fd492fc5f883625f2afcbbab312795 /root/ColumnStore/buildColumnstoreFromGithubSource/server/engine Merge pull request #1099 from pleblanc1976/mcol-2022-1.4 Mcol 2022 1.4 Verified that the reported issue no longer an issue. I ran both disk-run and cached-run and got similar results. MariaDB [tpch10]> select c.c_name, c.c_custkey, o.o_orderkey, o.o_orderdate, o.o_totalprice, sum(l.l_quantity) from customer c, orders o, lineitem l where o.o_orderkey in( select l_orderkey from lineitem group by l_orderkey having sum(l_quantity) > 313 ) and c.c_custkey = o.o_custkey and o.o_orderkey = l.l_orderkey group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice limit 100; -------------------
-------------------
.
------------------- MariaDB [tpch10]> select * from (select c.c_name, c.c_custkey, o.o_orderkey, o.o_orderdate, o.o_totalprice, sum(l.l_quantity) from customer c, orders o, lineitem l where o.o_orderkey in( select l_orderkey from lineitem group by l_orderkey having sum(l_quantity) > 313 ) and c.c_custkey = o.o_custkey and o.o_orderkey = l.l_orderkey group by c_name, c_custkey, o_orderkey, o_orderdate, o_totalprice limit 100) dummytable; -------------------
-------------------
.
------------------- |