mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MWL#17: Table elimination
mysql-test/r/table_elim.result: MWL#17: Table elimination - More tests mysql-test/t/table_elim.test: MWL#17: Table elimination - More tests sql/opt_table_elimination.cc: MWL#17: Table elimination - Code cleanup sql/sql_select.cc: MWL#17: Table elimination - Code cleanup sql/sql_select.h: MWL#17: Table elimination - Code cleanup sql/table.h: MWL#17: Table elimination - Code cleanup
This commit is contained in:
@ -1616,7 +1616,10 @@ public:
|
||||
typedef struct st_nested_join
|
||||
{
|
||||
List<TABLE_LIST> join_list; /* list of elements in the nested join */
|
||||
table_map used_tables; /* bitmap of tables in the nested join */
|
||||
/*
|
||||
Bitmap of tables within this nested join (including those embedded within
|
||||
its children). Eliminated tables are still in the bitmap */
|
||||
table_map used_tables;
|
||||
table_map not_null_tables; /* tables that rejects nulls */
|
||||
struct st_join_table *first_nested;/* the first nested table in the plan */
|
||||
/*
|
||||
@ -1625,6 +1628,8 @@ typedef struct st_nested_join
|
||||
2. check_interleaving_with_nj/restore_prev_nj_state (these are called
|
||||
by the join optimizer.
|
||||
Before each use the counters are zeroed by reset_nj_counters.
|
||||
Meaning, in both cases: number of base tables within this nested join and
|
||||
its children. Eliminated tables are not counted.
|
||||
*/
|
||||
uint counter;
|
||||
/* Tables left after elimination */
|
||||
|
Reference in New Issue
Block a user