~vkolesnikov/pbxt/pbxt-preload-test-bug

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/r/greedy_optimizer.result

  • Committer: paul-mccullagh
  • Date: 2008-03-10 11:36:34 UTC
  • Revision ID: paul-mccullagh-417ebf175a9c8ee6e5b3777d9e2398e1fb197391
Implemented full durability

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
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;
122
122
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
123
123
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
124
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
124
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
125
125
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
126
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
126
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
127
127
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
128
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
128
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
129
129
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
130
130
show status like 'Last_query_cost';
131
131
Variable_name   Value
133
133
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 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;
134
134
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
135
135
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
136
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
136
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
137
137
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
138
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
138
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
139
139
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
140
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
140
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
141
141
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
142
142
show status like 'Last_query_cost';
143
143
Variable_name   Value
145
145
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
146
146
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
147
147
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
148
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
148
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
149
149
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
150
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
150
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
151
151
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
152
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
152
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
153
153
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
154
154
show status like 'Last_query_cost';
155
155
Variable_name   Value
157
157
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
158
158
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
159
159
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
160
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
160
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
161
161
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
162
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
162
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
163
163
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
164
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
164
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
165
165
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
166
166
show status like 'Last_query_cost';
167
167
Variable_name   Value
169
169
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
170
170
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
171
171
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
172
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
172
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
173
173
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
174
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
174
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
175
175
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
176
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
176
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
177
177
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
178
178
show status like 'Last_query_cost';
179
179
Variable_name   Value
181
181
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
182
182
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
183
183
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
184
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
184
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
185
185
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
186
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
186
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
187
187
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
188
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
188
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
189
189
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
190
190
show status like 'Last_query_cost';
191
191
Variable_name   Value
201
201
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;
202
202
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
203
203
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
204
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
204
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
205
205
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
206
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
206
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
207
207
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
208
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
208
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
209
209
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
210
210
show status like 'Last_query_cost';
211
211
Variable_name   Value
213
213
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 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;
214
214
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
215
215
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
216
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
216
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
217
217
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
218
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
218
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
219
219
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
220
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
220
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
221
221
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
222
222
show status like 'Last_query_cost';
223
223
Variable_name   Value
225
225
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
226
226
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
227
227
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
228
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      
 
228
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using join buffer
229
229
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
230
230
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
231
231
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
232
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
232
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
233
233
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
234
234
show status like 'Last_query_cost';
235
235
Variable_name   Value
237
237
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
238
238
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
239
239
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
240
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      
 
240
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using join buffer
241
241
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
242
242
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
243
243
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
244
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
244
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
245
245
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
246
246
show status like 'Last_query_cost';
247
247
Variable_name   Value
249
249
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
250
250
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
251
251
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
252
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
252
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
253
253
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
254
254
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
255
255
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
256
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
256
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
257
257
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
258
258
show status like 'Last_query_cost';
259
259
Variable_name   Value
261
261
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
262
262
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
263
263
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
264
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
264
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
265
265
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
266
266
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
267
267
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
268
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
268
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
269
269
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
270
270
show status like 'Last_query_cost';
271
271
Variable_name   Value
277
277
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;
278
278
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
279
279
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
280
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
280
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
281
281
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
282
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
282
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
283
283
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
284
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
284
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
285
285
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
286
286
show status like 'Last_query_cost';
287
287
Variable_name   Value
289
289
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 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;
290
290
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
291
291
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
292
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
292
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
293
293
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
294
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
294
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
295
295
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
296
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
296
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
297
297
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
298
298
show status like 'Last_query_cost';
299
299
Variable_name   Value
304
304
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
305
305
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
306
306
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
307
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
308
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
309
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
307
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
 
308
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
 
309
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
310
310
show status like 'Last_query_cost';
311
311
Variable_name   Value
312
312
Last_query_cost 795.625316
316
316
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
317
317
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
318
318
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
319
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
320
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
321
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
319
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
 
320
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
 
321
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
322
322
show status like 'Last_query_cost';
323
323
Variable_name   Value
324
324
Last_query_cost 795.625316
328
328
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       
329
329
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
330
330
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
331
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
332
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
333
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
331
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
 
332
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
 
333
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
334
334
show status like 'Last_query_cost';
335
335
Variable_name   Value
336
336
Last_query_cost 795.625316
340
340
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       
341
341
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
342
342
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
343
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
344
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
345
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
343
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
 
344
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
 
345
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
346
346
show status like 'Last_query_cost';
347
347
Variable_name   Value
348
348
Last_query_cost 795.625316
353
353
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;
354
354
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
355
355
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
356
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
356
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
357
357
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
358
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
358
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
359
359
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
360
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
360
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
361
361
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
362
362
show status like 'Last_query_cost';
363
363
Variable_name   Value
365
365
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 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;
366
366
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
367
367
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
368
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
368
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
369
369
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
370
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
370
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
371
371
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
372
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
372
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
373
373
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
374
374
show status like 'Last_query_cost';
375
375
Variable_name   Value
377
377
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
378
378
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
379
379
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
380
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      
 
380
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using join buffer
381
381
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
382
382
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
383
383
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
384
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
384
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
385
385
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
386
386
show status like 'Last_query_cost';
387
387
Variable_name   Value
389
389
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
390
390
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
391
391
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
392
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      
 
392
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using join buffer
393
393
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
394
394
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
395
395
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
396
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
396
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
397
397
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
398
398
show status like 'Last_query_cost';
399
399
Variable_name   Value
401
401
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
402
402
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
403
403
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
404
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
404
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
405
405
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
406
406
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
407
407
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
408
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
408
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
409
409
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
410
410
show status like 'Last_query_cost';
411
411
Variable_name   Value
413
413
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
414
414
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
415
415
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
416
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
416
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
417
417
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
418
418
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
419
419
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
420
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
420
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
421
421
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
422
422
show status like 'Last_query_cost';
423
423
Variable_name   Value
433
433
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;
434
434
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
435
435
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
436
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
436
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
437
437
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
438
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
438
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
439
439
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
440
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
440
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
441
441
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
442
442
show status like 'Last_query_cost';
443
443
Variable_name   Value
445
445
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 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;
446
446
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
447
447
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
448
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
448
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
449
449
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
450
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
450
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
451
451
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
452
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
452
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
453
453
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
454
454
show status like 'Last_query_cost';
455
455
Variable_name   Value
457
457
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
458
458
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
459
459
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
460
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
460
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
461
461
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
462
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
462
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
463
463
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
464
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
464
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
465
465
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
466
466
show status like 'Last_query_cost';
467
467
Variable_name   Value
469
469
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
470
470
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
471
471
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
472
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
472
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
473
473
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
474
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
474
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
475
475
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
476
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
476
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
477
477
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
478
478
show status like 'Last_query_cost';
479
479
Variable_name   Value
481
481
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
482
482
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
483
483
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
484
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
484
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
485
485
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
486
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
486
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
487
487
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
488
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
488
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
489
489
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
490
490
show status like 'Last_query_cost';
491
491
Variable_name   Value
493
493
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
494
494
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
495
495
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
496
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
496
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
497
497
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
498
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
498
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
499
499
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
500
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
500
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
501
501
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
502
502
show status like 'Last_query_cost';
503
503
Variable_name   Value
509
509
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;
510
510
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
511
511
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
512
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
512
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
513
513
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
514
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
514
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
515
515
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
516
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
516
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
517
517
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
518
518
show status like 'Last_query_cost';
519
519
Variable_name   Value
521
521
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 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;
522
522
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
523
523
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
524
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
524
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
525
525
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
526
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
526
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
527
527
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
528
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
528
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
529
529
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
530
530
show status like 'Last_query_cost';
531
531
Variable_name   Value
536
536
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
537
537
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
538
538
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
539
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
540
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
541
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
539
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
 
540
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
 
541
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
542
542
show status like 'Last_query_cost';
543
543
Variable_name   Value
544
544
Last_query_cost 795.625316
548
548
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
549
549
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
550
550
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
551
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
552
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
553
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
551
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
 
552
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
 
553
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
554
554
show status like 'Last_query_cost';
555
555
Variable_name   Value
556
556
Last_query_cost 795.625316
560
560
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       
561
561
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
562
562
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
563
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
564
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
565
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
563
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
 
564
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
 
565
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
566
566
show status like 'Last_query_cost';
567
567
Variable_name   Value
568
568
Last_query_cost 795.625316
572
572
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       
573
573
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
574
574
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
575
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
576
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
577
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
575
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
 
576
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
 
577
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
578
578
show status like 'Last_query_cost';
579
579
Variable_name   Value
580
580
Last_query_cost 795.625316
585
585
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;
586
586
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
587
587
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
588
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
588
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
589
589
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
590
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
590
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
591
591
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
592
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
592
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
593
593
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
594
594
show status like 'Last_query_cost';
595
595
Variable_name   Value
597
597
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 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;
598
598
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
599
599
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       
600
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
600
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
601
601
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t2.c22     1       
602
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
602
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
603
603
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t4.c42     1       
604
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
604
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
605
605
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t6.c62     1       Using index
606
606
show status like 'Last_query_cost';
607
607
Variable_name   Value
609
609
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
610
610
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
611
611
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
612
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
612
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
613
613
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
614
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
614
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
615
615
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
616
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
616
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
617
617
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
618
618
show status like 'Last_query_cost';
619
619
Variable_name   Value
621
621
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71;
622
622
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
623
623
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
624
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
624
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
625
625
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
626
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
626
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
627
627
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
628
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
628
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
629
629
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
630
630
show status like 'Last_query_cost';
631
631
Variable_name   Value
633
633
explain select t1.c11 from t1, t2, t3, t4, t5, t6, t7 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
634
634
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
635
635
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
636
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
636
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
637
637
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
638
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
638
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
639
639
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
640
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
640
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
641
641
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
642
642
show status like 'Last_query_cost';
643
643
Variable_name   Value
645
645
explain select t1.c11 from t7, t6, t5, t4, t3, t2, t1 where t1.c11 = t2.c21 and t1.c12 = t3.c31 and t1.c13 = t4.c41 and t1.c14 = t5.c51 and t1.c15 = t6.c61 and t1.c16 = t7.c71 and t2.c22 = t3.c32 and t2.c23 = t4.c42 and t2.c24 = t5.c52 and t2.c25 = t6.c62 and t2.c26 = t7.c72 and t3.c33 = t4.c43 and t3.c34 = t5.c53 and t3.c35 = t6.c63 and t3.c36 = t7.c73 and t4.c42 = t5.c54 and t4.c43 = t6.c64 and t4.c44 = t7.c74 and t5.c52 = t6.c65 and t5.c53 = t7.c75 and t6.c62 = t7.c76;
646
646
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
647
647
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
648
 
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where
 
648
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
649
649
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
650
 
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where
 
650
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
651
651
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
652
 
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where
 
652
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
653
653
1       SIMPLE  t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using where
654
654
show status like 'Last_query_cost';
655
655
Variable_name   Value