Commit 511b53ab authored by Igor Babaev's avatar Igor Babaev

Post-merge fixes.

parent afcefa97
...@@ -4696,8 +4696,7 @@ ROR_SCAN_INFO *make_ror_scan(const PARAM *param, int idx, SEL_ARG *sel_arg) ...@@ -4696,8 +4696,7 @@ ROR_SCAN_INFO *make_ror_scan(const PARAM *param, int idx, SEL_ARG *sel_arg)
bitmap_set_bit(&ror_scan->covered_fields, key_part->fieldnr-1); bitmap_set_bit(&ror_scan->covered_fields, key_part->fieldnr-1);
} }
ror_scan->index_read_cost= ror_scan->index_read_cost=
param->table->file->keyread_time(ror_scan->keynr, 1, param->table->file->keyread_time(ror_scan->keynr, 1, ror_scan->records);
param->table->quick_rows[ror_scan->keynr]);
DBUG_RETURN(ror_scan); DBUG_RETURN(ror_scan);
} }
......
...@@ -457,11 +457,8 @@ class QUICK_RANGE_SELECT_GEOM: public QUICK_RANGE_SELECT ...@@ -457,11 +457,8 @@ class QUICK_RANGE_SELECT_GEOM: public QUICK_RANGE_SELECT
INDEX MERGE OPTIMIZER INDEX MERGE OPTIMIZER
Current implementation doesn't detect all cases where index_merge could Current implementation doesn't detect all cases where index_merge could
be used, in particular: be used, in particular:
* index_merge will never be used if range scan is possible (even if
range scan is more expensive)
* index_merge+'using index' is not supported (this the consequence of * index_merge+'using index' is not supported
the above restriction)
* If WHERE part contains complex nested AND and OR conditions, some ways * If WHERE part contains complex nested AND and OR conditions, some ways
to retrieve rows using index_merge will not be considered. The choice to retrieve rows using index_merge will not be considered. The choice
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment