[MDEV-15398] Poor performance in query with filtered rank Created: 2018-02-23 Updated: 2018-08-15 Resolved: 2018-08-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions |
| Fix Version/s: | 10.3.4 |
| Type: | Task | Priority: | Major |
| Reporter: | Tadas Balaišis | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Can not achieve good performance in query with filtered columns outside of inner part with RANK() function. These columns participate in "partition by" expression of RANK(), bet filter isn't pushed down. Same functionality in Oracle works fine. Short example. Good performance: select ml_id, nr, da Bad performance (desired query): select * from ( Plan: 1 PRIMARY <derived2> ALL \N \N \N \N 22991097024000 Using where What could be done to improve? |
| Comments |
| Comment by Tadas Balaišis [ 2018-02-24 ] |
|
Upgraded software from 10.2.12 to 10.3.4. Now it works fine. Thanks. |