[MDEV-21510] optimizer trace should show the index name in the block chosen_access_method Created: 2020-01-17  Updated: 2023-12-05

Status: Stalled
Project: MariaDB Server
Component/s: Optimizer
Affects Version/s: 10.4, 10.5
Fix Version/s: 10.4, 10.5

Type: Bug Priority: Major
Reporter: Varun Gupta (Inactive) Assignee: Sergei Petrunia
Resolution: Unresolved Votes: 0
Labels: optimizer_trace


 Description   

explain select * from t1,t2 where t1.a=t2.b+2 and t2.a= t1.b;

                    "best_access_path": {
                      "considered_access_paths": [
                        {
                          "access_type": "ref",
                          "index": "a",
                          "used_range_estimates": false,
                          "cause": "not available",
                          "rows": 1,
                          "cost": 200,
                          "chosen": true
                        },
                        {
                          "access_type": "scan",
                          "resulting_rows": 100,
                          "cost": 2.3174,
                          "chosen": false
                        }
                      ],
                      "chosen_access_method": {
                        "type": "ref",
                        "records": 1,
                        "cost": 200,
                        "uses_join_buffering": false,
                        "filter_used": false
                      }

As we see for table t2 ref access is used but the index name is not shown in chosen_access_method



 Comments   
Comment by Julien Fritsch [ 2023-12-05 ]

Automated message:
----------------------------
Since this issue has not been updated since 6 weeks, it's time to move it back to Stalled.

Comment by JiraAutomate [ 2023-12-05 ]

Automated message:
----------------------------
Since this issue has not been updated since 6 weeks, it's time to move it back to Stalled.

Generated at Thu Feb 08 09:07:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.