~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/greedy_optimizer.result

  • Committer: Andrew Hutchings
  • Date: 2010-09-08 19:03:09 UTC
  • mfrom: (1750 staging)
  • mto: (1750.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1751.
  • Revision ID: andrew@linuxjedi.co.uk-20100908190309-mya1nu7xvo1fpvk8
Merge trunk into branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
Last_query_cost #
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
1       #       t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
227
228
1       #       t2      ALL     NULL    NULL    NULL    NULL    6       
 
229
1       #       t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
228
230
1       #       t4      ALL     NULL    NULL    NULL    NULL    12      Using join buffer
229
 
1       #       t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
230
 
1       #       t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
231
231
1       #       t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
232
232
1       #       t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
233
233
1       #       t7      eq_ref  PRIMARY PRIMARY 4       test.t1.c16     1       Using index
236
236
Last_query_cost #
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
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
239
240
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
 
241
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
240
242
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using join buffer
241
 
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
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
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
248
248
Last_query_cost #
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
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
251
252
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
 
253
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
252
254
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
253
 
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
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
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
301
301
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;
302
302
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
303
303
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
 
304
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
304
305
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
 
306
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
305
307
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using index
 
308
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
306
309
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; 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 #
325
325
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;
326
326
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
327
327
1       SIMPLE  t1      ALL     PRIMARY NULL    NULL    NULL    3       
 
328
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       Using where; Using join buffer
328
329
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       
 
330
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
329
331
1       SIMPLE  t5      eq_ref  PRIMARY PRIMARY 4       test.t1.c14     1       Using where
 
332
1       SIMPLE  t6      ALL     NULL    NULL    NULL    NULL    18      Using where; Using join buffer
330
333
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; 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 #
376
376
Last_query_cost #
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
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
379
380
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
 
381
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
380
382
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using join buffer
381
 
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
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
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
388
388
Last_query_cost #
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
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
391
392
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
 
393
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using index
392
394
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using join buffer
393
 
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
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
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
400
400
Last_query_cost #
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
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
403
404
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
 
405
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
404
406
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
405
 
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
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
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
412
412
Last_query_cost #
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
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
415
416
1       SIMPLE  t2      ALL     NULL    NULL    NULL    NULL    6       
 
417
1       SIMPLE  t3      eq_ref  PRIMARY PRIMARY 4       test.t1.c12     1       Using where
416
418
1       SIMPLE  t4      ALL     NULL    NULL    NULL    NULL    12      Using where; Using join buffer
417
 
1       SIMPLE  t1      eq_ref  PRIMARY PRIMARY 4       test.t2.c21     1       Using where
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
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