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

Function use_found_constraint

sql/sql_select.cc:8334–8338  ·  view source on GitHub ↗

Take into account that the table's WHERE clause has conditions on earlier tables that can reduce the number of accepted rows. @param records Number of original rows (after selectivity) If there is a filtering condition on the table (i.e. ref analyzer found at least one "table.keyXpartY= exprZ", where exprZ refers only to tables preceding this table in the join order we're now consider

Source from the content-addressed store, hash-verified

8332 this table in join order.
8333*/
8334inline double use_found_constraint(double records)
8335{
8336 records-= records/4;
8337 return records ? MY_MAX(records, MIN_ROWS_AFTER_FILTERING) : 0.0;
8338}
8339
8340
8341/*

Callers 1

best_access_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected