[MDEV-23677] Optimizer trace: remove print out with "no predicate for first keypart" Created: 2020-09-05 Updated: 2021-03-23 Resolved: 2021-03-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Fix Version/s: | 10.6.0 |
| Type: | Task | Priority: | Critical |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | optimizer_trace | ||
| Description |
|
For joins, best_access_path object can have printouts like this:
I think these should be removed as they don't have any value. |
| Comments |
| Comment by Sergei Petrunia [ 2021-03-18 ] | ||||||||||||||||||||||||||
|
Well, this will just change
to
but will still print the index being considered (actually not). I've tried to make the code to avoid printing the whole object, i.e.
but this is hard to do as ref access code has some side effects (changes in found_constraint and Loose_scan_opt). Considering this, it's better not to make this change now. | ||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2021-03-18 ] | ||||||||||||||||||||||||||
|
On the other hand some printouts are misleading:
and sometimes used_range_estimates is not printed when the reuse is happening. |