mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Added compare cost for DS-MRR (multi-range-read with disk sweep)
This commit is contained in:
@@ -2080,6 +2080,8 @@ bool DsMrr_impl::get_disk_sweep_mrr_cost(uint keynr, ha_rows rows, uint flags,
|
||||
|
||||
/* Total cost of all index accesses */
|
||||
cost->index_cost= primary_file->ha_keyread_and_copy_time(keynr, 1, rows, 0);
|
||||
cost->comp_cost= rows2double(rows) * primary_file->WHERE_COST;
|
||||
cost->setup_cost= primary_file->MULTI_RANGE_READ_SETUP_COST;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user