Open midenok opened 1 month ago
const double index_scan_time =
select_limit / rec_per_key *
min<double>(table->file->page_read_cost(nr, rec_per_key),
table_scan_time.total_cost());
index_scan_time= select_limit/rec_per_key *
MY_MIN(rec_per_key, table->file->scan_time());
This change from 4bf48e8bf0d fixes the result of main.distinct
MEMORY_BLOCK_READ_COST was introduced by 07cad655133
This change is important:
The core logic for MEMORY_BLOCK_READ_COST is done by:
page_read_cost() depends on 91b65d99
91b65d99 depends on get_memory_buffer_size() from 77059678
Other commits
io_block_read_cost()
introduced and 1.0 replaced with it.io_block_read_cost()
is added toget_merge_cost()
, etc.