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

Function cache_record_length

sql/sql_select.cc:12729–12743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12727
12728
12729static uint
12730cache_record_length(JOIN *join,uint idx)
12731{
12732 uint length=0;
12733 JOIN_TAB **pos,**end;
12734
12735 for (pos=join->best_ref+join->const_tables,end=join->best_ref+idx ;
12736 pos != end ;
12737 pos++)
12738 {
12739 JOIN_TAB *join_tab= *pos;
12740 length+= join_tab->get_used_fieldlength();
12741 }
12742 return length;
12743}
12744
12745/*
12746 Estimate the number of engine ha_index_read_calls for EQ_REF tables

Callers 1

best_access_pathFunction · 0.85

Calls 1

get_used_fieldlengthMethod · 0.80

Tested by

no test coverage detected