mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge branch '10.5' into 10.6
This commit is contained in:
@ -480,6 +480,9 @@ select * from v2 {
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"test_if_skip_sort_order": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -802,6 +805,9 @@ explain select * from v1 {
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"test_if_skip_sort_order": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1298,6 +1304,9 @@ EXPLAIN SELECT DISTINCT a FROM t1 {
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"test_if_skip_sort_order": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1495,6 +1504,9 @@ EXPLAIN SELECT MIN(d) FROM t1 where b=2 and c=3 group by a {
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"test_if_skip_sort_order": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1693,6 +1705,9 @@ EXPLAIN SELECT id,MIN(a),MAX(a) FROM t1 WHERE a>=20010104e0 GROUP BY id {
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"test_if_skip_sort_order": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1880,6 +1895,9 @@ EXPLAIN SELECT * FROM t1 WHERE a = 20010104e0 GROUP BY id {
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"test_if_skip_sort_order": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -2165,97 +2183,101 @@ explain select * from t1 where a=1 and b=2 order by c limit 1 {
|
||||
}
|
||||
},
|
||||
{
|
||||
"reconsidering_access_paths_for_index_ordering": {
|
||||
"clause": "ORDER BY",
|
||||
"fanout": 1,
|
||||
"read_time": 21.14342739,
|
||||
"table": "t1",
|
||||
"rows_estimation": 21,
|
||||
"possible_keys": [
|
||||
{
|
||||
"index": "a_a",
|
||||
"can_resolve_order": true,
|
||||
"updated_limit": 47,
|
||||
"index_scan_time": 47,
|
||||
"usable": false,
|
||||
"cause": "cost"
|
||||
},
|
||||
{
|
||||
"index": "a_c",
|
||||
"can_resolve_order": true,
|
||||
"updated_limit": 47,
|
||||
"range_scan_time": 4.331020747,
|
||||
"index_scan_time": 4.331020747,
|
||||
"records": 180,
|
||||
"chosen": true
|
||||
},
|
||||
{
|
||||
"index": "a_b",
|
||||
"can_resolve_order": false,
|
||||
"cause": "not usable index for the query"
|
||||
"test_if_skip_sort_order": [
|
||||
{
|
||||
"reconsidering_access_paths_for_index_ordering": {
|
||||
"clause": "ORDER BY",
|
||||
"fanout": 1,
|
||||
"read_time": 21.14342739,
|
||||
"table": "t1",
|
||||
"rows_estimation": 21,
|
||||
"possible_keys": [
|
||||
{
|
||||
"index": "a_a",
|
||||
"can_resolve_order": true,
|
||||
"updated_limit": 47,
|
||||
"index_scan_time": 47,
|
||||
"usable": false,
|
||||
"cause": "cost"
|
||||
},
|
||||
{
|
||||
"index": "a_c",
|
||||
"can_resolve_order": true,
|
||||
"updated_limit": 47,
|
||||
"range_scan_time": 4.331020747,
|
||||
"index_scan_time": 4.331020747,
|
||||
"records": 180,
|
||||
"chosen": true
|
||||
},
|
||||
{
|
||||
"index": "a_b",
|
||||
"can_resolve_order": false,
|
||||
"cause": "not usable index for the query"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"table": "t1",
|
||||
"range_analysis": {
|
||||
"table_scan": {
|
||||
"rows": 1000,
|
||||
"cost": 1.79769e308
|
||||
},
|
||||
"potential_range_indexes": [
|
||||
{
|
||||
"index": "a_a",
|
||||
"usable": false,
|
||||
"cause": "not applicable"
|
||||
},
|
||||
{
|
||||
"index": "a_c",
|
||||
"usable": true,
|
||||
"key_parts": ["a", "c"]
|
||||
},
|
||||
{
|
||||
"index": "a_b",
|
||||
"usable": false,
|
||||
"cause": "not applicable"
|
||||
}
|
||||
],
|
||||
"setup_range_conditions": [],
|
||||
"analyzing_range_alternatives": {
|
||||
"range_scan_alternatives": [
|
||||
{
|
||||
"index": "a_c",
|
||||
"ranges": ["(1) <= (a) <= (1)"],
|
||||
"rowid_ordered": false,
|
||||
"using_mrr": false,
|
||||
"index_only": false,
|
||||
"rows": 180,
|
||||
"cost": 216.2943776,
|
||||
{
|
||||
"table": "t1",
|
||||
"range_analysis": {
|
||||
"table_scan": {
|
||||
"rows": 1000,
|
||||
"cost": 1.79769e308
|
||||
},
|
||||
"potential_range_indexes": [
|
||||
{
|
||||
"index": "a_a",
|
||||
"usable": false,
|
||||
"cause": "not applicable"
|
||||
},
|
||||
{
|
||||
"index": "a_c",
|
||||
"usable": true,
|
||||
"key_parts": ["a", "c"]
|
||||
},
|
||||
{
|
||||
"index": "a_b",
|
||||
"usable": false,
|
||||
"cause": "not applicable"
|
||||
}
|
||||
],
|
||||
"setup_range_conditions": [],
|
||||
"analyzing_range_alternatives": {
|
||||
"range_scan_alternatives": [
|
||||
{
|
||||
"index": "a_c",
|
||||
"ranges": ["(1) <= (a) <= (1)"],
|
||||
"rowid_ordered": false,
|
||||
"using_mrr": false,
|
||||
"index_only": false,
|
||||
"rows": 180,
|
||||
"cost": 216.2943776,
|
||||
"chosen": true
|
||||
}
|
||||
],
|
||||
"analyzing_roworder_intersect": {
|
||||
"cause": "too few roworder scans"
|
||||
},
|
||||
"analyzing_index_merge_union": []
|
||||
},
|
||||
"group_index_range": {
|
||||
"chosen": false,
|
||||
"cause": "no group by or distinct"
|
||||
},
|
||||
"chosen_range_access_summary": {
|
||||
"range_access_plan": {
|
||||
"type": "range_scan",
|
||||
"index": "a_c",
|
||||
"rows": 180,
|
||||
"ranges": ["(1) <= (a) <= (1)"]
|
||||
},
|
||||
"rows_for_plan": 180,
|
||||
"cost_for_plan": 216.2943776,
|
||||
"chosen": true
|
||||
}
|
||||
],
|
||||
"analyzing_roworder_intersect": {
|
||||
"cause": "too few roworder scans"
|
||||
},
|
||||
"analyzing_index_merge_union": []
|
||||
},
|
||||
"group_index_range": {
|
||||
"chosen": false,
|
||||
"cause": "no group by or distinct"
|
||||
},
|
||||
"chosen_range_access_summary": {
|
||||
"range_access_plan": {
|
||||
"type": "range_scan",
|
||||
"index": "a_c",
|
||||
"rows": 180,
|
||||
"ranges": ["(1) <= (a) <= (1)"]
|
||||
},
|
||||
"rows_for_plan": 180,
|
||||
"cost_for_plan": 216.2943776,
|
||||
"chosen": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user