@@ -108,15 +108,15 @@ insert into t7 values (18,2,3,4,5,6);
...
@@ -108,15 +108,15 @@ insert into t7 values (18,2,3,4,5,6);
insert into t7 values (19,2,3,4,5,6);
insert into t7 values (19,2,3,4,5,6);
insert into t7 values (20,2,3,4,5,6);
insert into t7 values (20,2,3,4,5,6);
insert into t7 values (21,2,3,4,5,6);
insert into t7 values (21,2,3,4,5,6);
select @@plan_search_depth;
select @@optimizer_search_depth;
@@plan_search_depth
@@optimizer_search_depth
62
62
select @@heuristic;
select @@optimizer_prune_level;
@@heuristic
@@optimizer_prune_level
1
1
set plan_search_depth=63;
set optimizer_search_depth=63;
select @@plan_search_depth;
select @@optimizer_search_depth;
@@plan_search_depth
@@optimizer_search_depth
63
63
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
...
@@ -190,13 +190,13 @@ id select_type table type possible_keys key key_len ref rows Extra
...
@@ -190,13 +190,13 @@ id select_type table type possible_keys key key_len ref rows Extra
show status like 'Last_query_cost';
show status like 'Last_query_cost';
Variable_name Value
Variable_name Value
Last_query_cost 794.838037
Last_query_cost 794.838037
set heuristic=0;
set optimizer_prune_level=0;
select @@heuristic;
select @@optimizer_prune_level;
@@heuristic
@@optimizer_prune_level
0
0
set plan_search_depth=0;
set optimizer_search_depth=0;
select @@plan_search_depth;
select @@optimizer_search_depth;
@@plan_search_depth
@@optimizer_search_depth
0
0
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
...
@@ -270,9 +270,9 @@ id select_type table type possible_keys key key_len ref rows Extra
...
@@ -270,9 +270,9 @@ id select_type table type possible_keys key key_len ref rows Extra
show status like 'Last_query_cost';
show status like 'Last_query_cost';
Variable_name Value
Variable_name Value
Last_query_cost 274.419727
Last_query_cost 274.419727
set plan_search_depth=1;
set optimizer_search_depth=1;
select @@plan_search_depth;
select @@optimizer_search_depth;
@@plan_search_depth
@@optimizer_search_depth
1
1
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
...
@@ -346,9 +346,9 @@ id select_type table type possible_keys key key_len ref rows Extra
...
@@ -346,9 +346,9 @@ id select_type table type possible_keys key key_len ref rows Extra
show status like 'Last_query_cost';
show status like 'Last_query_cost';
Variable_name Value
Variable_name Value
Last_query_cost 794.838037
Last_query_cost 794.838037
set plan_search_depth=62;
set optimizer_search_depth=62;
select @@plan_search_depth;
select @@optimizer_search_depth;
@@plan_search_depth
@@optimizer_search_depth
62
62
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
...
@@ -422,13 +422,13 @@ id select_type table type possible_keys key key_len ref rows Extra
...
@@ -422,13 +422,13 @@ id select_type table type possible_keys key key_len ref rows Extra
show status like 'Last_query_cost';
show status like 'Last_query_cost';
Variable_name Value
Variable_name Value
Last_query_cost 274.419727
Last_query_cost 274.419727
set heuristic=1;
set optimizer_prune_level=1;
select @@heuristic;
select @@optimizer_prune_level;
@@heuristic
@@optimizer_prune_level
1
1
set plan_search_depth=0;
set optimizer_search_depth=0;
select @@plan_search_depth;
select @@optimizer_search_depth;
@@plan_search_depth
@@optimizer_search_depth
0
0
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
...
@@ -502,9 +502,9 @@ id select_type table type possible_keys key key_len ref rows Extra
...
@@ -502,9 +502,9 @@ id select_type table type possible_keys key key_len ref rows Extra
show status like 'Last_query_cost';
show status like 'Last_query_cost';
Variable_name Value
Variable_name Value
Last_query_cost 794.838037
Last_query_cost 794.838037
set plan_search_depth=1;
set optimizer_search_depth=1;
select @@plan_search_depth;
select @@optimizer_search_depth;
@@plan_search_depth
@@optimizer_search_depth
1
1
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
...
@@ -578,9 +578,9 @@ id select_type table type possible_keys key key_len ref rows Extra
...
@@ -578,9 +578,9 @@ id select_type table type possible_keys key key_len ref rows Extra
show status like 'Last_query_cost';
show status like 'Last_query_cost';
Variable_name Value
Variable_name Value
Last_query_cost 794.838037
Last_query_cost 794.838037
set plan_search_depth=62;
set optimizer_search_depth=62;
select @@plan_search_depth;
select @@optimizer_search_depth;
@@plan_search_depth
@@optimizer_search_depth
62
62
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c12 = t2.c21 and t2.c22 = t3.c31 and t3.c32 = t4.c41 and t4.c42 = t5.c51 and t5.c52 = t6.c61 and t6.c62 = t7.c71;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
"Controls the heuristic(s) applied during query optimization to prune less-promising partial plans from the optimizer search space. Meaning: 0 - do not apply any heuristic, thus perform exhaustive search; 1 - prune plans based on rows and read time.",
"Number of identical copies of log groups we keep for the database. Currently this should be set to 1.",
"Number of identical copies of log groups we keep for the database. Currently this should be set to 1.",
...
@@ -4648,10 +4643,15 @@ The minimum value for this variable is 4096.",
...
@@ -4648,10 +4643,15 @@ The minimum value for this variable is 4096.",
"If this is not 0, then mysqld will use this value to reserve file descriptors to use with setrlimit(). If this value is 0 then mysqld will reserve max_connections*5 or max_connections + table_cache*2 (whichever is larger) number of files.",
"If this is not 0, then mysqld will use this value to reserve file descriptors to use with setrlimit(). If this value is 0 then mysqld will reserve max_connections*5 or max_connections + table_cache*2 (whichever is larger) number of files.",
"Controls the heuristic(s) applied during query optimization to prune less-promising partial plans from the optimizer search space. Meaning: 0 - do not apply any heuristic, thus perform exhaustive search; 1 - prune plans based on number of retrieved rows.",
"Maximum depth of search performed by the query optimizer. Values larger than the number of relations in a query result in better query plans, but take longer to compile a query. Smaller values than the number of tables in a relation result in faster optimization, but may produce very bad query plans. If set to 0, the system will automatically pick a reasonable value; if set to MAX_TABLES+2, the optimizer will switch to the original find_best (used for testing/comparison).",
"Maximum depth of search performed by the query optimizer. Values larger than the number of relations in a query result in better query plans, but take longer to compile a query. Smaller values than the number of tables in a relation result in faster optimization, but may produce very bad query plans. If set to 0, the system will automatically pick a reasonable value; if set to MAX_TABLES+2, the optimizer will switch to the original find_best (used for testing/comparison).",