Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1(EOL)
-
None
-
Ubuntu
-
2017-02, 10.1.22
Description
set global optimizer_switch="engine_condition_pushdown=on"
Ouch! It is now pulling back the entire table 200 rows at a time.
Query: SELECT DISTINCT x FROM table
PRIMARY KEY (x,y,z)
Backend queries: SELECT x FROM table x > 12345 ORDER BY x,y,z LIMIT 200.
(And it is taking much longer than when ecp=OFF)
Question 1: Why fetch the table rather than executing the query?
Question 2: When you have a multi-part PK, that code is likely to be "wrong". Note that it always compared only x, not y and z. And it always said 200.
Attachments
Issue Links
- causes
-
MDEV-13282 post-fix for MDEV-8954
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Sergei Petrunia [ psergey ] |
Sprint | 10.1.9-3 [ 20 ] |
Fix Version/s | 10.1 [ 16100 ] |
Sprint | 10.1.9-3 [ 20 ] |
Assignee | Sergei Petrunia [ psergey ] | Kentoku [ kentoku ] |
Affects Version/s | 10.1 [ 16100 ] |
Sprint | 10.0.21 [ 129 ] |
Rank | Ranked higher |
Assignee | Kentoku [ kentoku ] | Jacob Mathew [ jacob-mathew ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Sprint | 2017-02 [ 129 ] | 2017-02, 10.1.22 [ 129, 143 ] |
Rank | Ranked lower |
Affects Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.1 [ 16100 ] |
Affects Version/s | 10.1 [ 16100 ] | |
Affects Version/s | 10.2 [ 14601 ] |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.1 [ 16100 ] |
issue.field.resolutiondate | 2017-04-26 21:56:38.0 | 2017-04-26 21:56:38.361 |
Fix Version/s | N/A [ 14700 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Fix Version/s | 10.3.1 [ 22532 ] | |
Fix Version/s | N/A [ 14700 ] |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Stalled [ 10000 ] |
Fix Version/s | 10.2.6 [ 22527 ] | |
Fix Version/s | 10.3.1 [ 22532 ] |
issue.field.resolutiondate | 2017-05-01 23:15:42.0 | 2017-05-01 23:15:42.21 |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Stalled [ 10000 ] |
Link |
This issue causes |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 72136 ] | MariaDB v4 [ 149718 ] |
rjasdf,
Please note that engine_condition_pushdown switch has been deprecated since 10.1.1. As you can see from the explanation, it is not expected to produce any optimization, only an overhead.
I will assign the report to psergey anyway, in case he wants to look into it and see if there is any problem outside the scope of engine_condition_pushdown switch. If it turns out to be solely the switch'es guilt, I recommend closing it as 'Won't fix'.
rjasdf, please also specify the version where you observed the problem.