mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Removed double calls to records_in_range from distinct and group by
Fixed by moving testing of get_best_group_min_max() after range testing.
This commit is contained in:
@@ -108,10 +108,6 @@ explain select * from t1 where pk1 != 0 and key1 = 1 {
|
||||
}
|
||||
],
|
||||
"setup_range_conditions": [],
|
||||
"group_index_range": {
|
||||
"chosen": false,
|
||||
"cause": "no group by or distinct"
|
||||
},
|
||||
"analyzing_range_alternatives": {
|
||||
"range_scan_alternatives": [
|
||||
{
|
||||
@@ -158,6 +154,10 @@ explain select * from t1 where pk1 != 0 and key1 = 1 {
|
||||
},
|
||||
"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",
|
||||
|
Reference in New Issue
Block a user