MCPcopy Create free account
hub / github.com/MariaDB/server / ha_keyread_time

Method ha_keyread_time

sql/handler.cc:3792–3801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3790*/
3791
3792IO_AND_CPU_COST handler::ha_keyread_time(uint index, ulong ranges,
3793 ha_rows rows,
3794 ulonglong blocks)
3795{
3796 if (rows < ranges)
3797 rows= ranges;
3798 IO_AND_CPU_COST cost= keyread_time(index, ranges, rows, blocks);
3799 cost.cpu+= ranges * KEY_LOOKUP_COST + (rows - ranges) * KEY_NEXT_FIND_COST;
3800 return cost;
3801}
3802
3803
3804/*

Callers 1

cost_for_index_readFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected