pub unsafe extern "C" fn handler_keyread_time(
    this: *mut c_void,
    index: uint,
    ranges: ulong,
    rows: ha_rows,
    blocks: ulonglong
) -> IO_AND_CPU_COST
Expand description

Calculate cost of ‘index_only’ scan for given index, a number of ranges and number of records.

  • index () Index to read

  • rows () #of records to read

  • blocks () Number of IO blocks that needs to be accessed. 0 if not known (in which case it’s calculated)