MySQL 9.1.0
Source Code Documentation
|
Go to the source code of this file.
Functions | |
bool | MakeDerivedKeys (THD *thd, JOIN *join) |
Collect the set fields of derived tables that are present in predicates like "derived_tab.field=function(other_tab.field)". More... | |
void | FinalizeDerivedKeys (THD *thd, const Query_block &query_block, AccessPath *root_path) |
Remove any unused keys on derived tables. More... | |
void FinalizeDerivedKeys | ( | THD * | thd, |
const Query_block & | query_block, | ||
AccessPath * | root_path | ||
) |
Remove any unused keys on derived tables.
Update the key number in any AccessPath that uses a key that gets shifted to a lower number due to those removals.
thd | The current thread. |
query_block | The current Query_block. |
root_path | The root path of 'query_block'. |