42
47
SELECT * from t1 order by a;
50
55
ERROR 42000: The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay
51
56
SET MAX_JOIN_SIZE=DEFAULT;
59
64
Table Op Msg_type Msg_text
60
65
test.t1 analyze status OK
61
66
insert into t1 values (null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a"),(null,"a");
62
67
explain select STRAIGHT_JOIN * from t1,t1 as t2 where t1.b=t2.b;
63
68
id select_type table type possible_keys key key_len ref rows Extra
67
72
explain select STRAIGHT_JOIN * from t1,t1 as t2 where t1.b=t2.b;
68
73
id select_type table type possible_keys key key_len ref rows Extra
71
76
SET MAX_SEEKS_FOR_KEY=DEFAULT;