#include <sys/types.h>
#include "sql/enum_query_type.h"
#include "sql/mem_root_array.h"
#include "sql/sql_lex.h"
#include "sql/sql_select.h"
#include "thr_lock.h"
Go to the source code of this file.
|
void | print_where (const THD *thd, const Item *cond, const char *info, enum_query_type query_type) |
|
void | TEST_join (JOIN *join) |
|
void | print_plan (JOIN *join, uint idx, double record_count, double read_time, double current_read_time, const char *info) |
| Print the current state during query optimization. More...
|
|
void | dump_TABLE_LIST_graph (Query_block *query_block, Table_ref *tl) |
|
void | print_keyuse_array (THD *thd, Opt_trace_context *trace, const Key_use_array *keyuse_array) |
|
◆ Key_use_array
◆ dump_TABLE_LIST_graph()
◆ print_keyuse_array()
◆ print_plan()
void print_plan |
( |
JOIN * |
join, |
|
|
uint |
idx, |
|
|
double |
record_count, |
|
|
double |
read_time, |
|
|
double |
current_read_time, |
|
|
const char * |
info |
|
) |
| |
Print the current state during query optimization.
- Parameters
-
join | pointer to the structure providing all context info for the query |
idx | length of the partial QEP in 'join->positions' also an index in the array 'join->best_ref' |
record_count | estimate for the number of records returned by the best partial plan |
read_time | the cost of the best partial plan. If a complete plan is printed (join->best_read is set), this argument is ignored. |
current_read_time | the accumulated cost of the current partial plan |
info | comment string to appear above the printout |
This function prints to the log file DBUG_FILE the members of 'join' that are used during query optimization (join->positions, join->best_positions, and join->best_ref) and few other related variables (read_time, record_count). Useful to trace query optimizer functions.
◆ print_where()
◆ TEST_join()
void TEST_join |
( |
JOIN * |
join | ) |
|
◆ lock_descriptions