1
0
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:
Monty
2020-03-04 19:52:19 +02:00
parent f36ca142f7
commit b3ab3105fd
4 changed files with 140 additions and 118 deletions

View File

@@ -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",