~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to tests/r/index_merge_innodb.result

  • Committer: Padraig O'Sullivan
  • Date: 2010-04-17 05:05:44 UTC
  • Revision ID: osullivan.padraig@gmail.com-20100417050544-10kmphpwptsqsxs3
Updated the index_merge_innodb test case after removing get_best_ror_intersect function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
Level   Code    Message
68
68
explain select pk from t1 where key1 = 1 and key2 = 1;
69
69
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
70
 
1       SIMPLE  t1      index_merge     key1,key2       key1,key2       5,4     NULL    1       Using intersect(key1,key2); Using where; Using index
 
70
1       SIMPLE  t1      ref     key1,key2       key1    5       const   4       Using where
71
71
select pk from t1 where key2 = 1 and key1 = 1;
72
72
pk
73
73
26
111
111
explain select count(*) from t1 where
112
112
key1a = 2 and key1b is null and  key2a = 2 and key2b is null;
113
113
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
114
 
1       SIMPLE  t1      index_merge     i1,i2   i1,i2   10,10   NULL    #       Using intersect(i1,i2); Using where; Using index
 
114
1       SIMPLE  t1      ref     i1,i2   i1      10      const,const     #       Using where
115
115
select count(*) from t1 where
116
116
key1a = 2 and key1b is null and key2a = 2 and key2b is null;
117
117
count(*)
119
119
explain select count(*) from t1 where
120
120
key1a = 2 and key1b is null and key3a = 2 and key3b is null;
121
121
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
122
 
1       SIMPLE  t1      index_merge     i1,i3   i1,i3   10,10   NULL    #       Using intersect(i1,i3); Using where; Using index
 
122
1       SIMPLE  t1      ref     i1,i3   i1      10      const,const     #       Using where
123
123
select count(*) from t1 where
124
124
key1a = 2 and key1b is null and key3a = 2 and key3b is null;
125
125
count(*)
361
361
1       19      0       0       0       0       0       0       0       19      0       filler-data-19  filler2
362
362
explain select pk1,pk2 from t1 where key1 = 10 and key2=10 and 2*pk1+1 < 2*96+1;
363
363
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
364
 
1       SIMPLE  t1      index_merge     key1,key2       key1,key2       4,4     NULL    1       Using intersect(key1,key2); Using where; Using index
 
364
1       SIMPLE  t1      ref     key1,key2       key1    4       const   100     Using where
365
365
select pk1,pk2 from t1 where key1 = 10 and key2=10 and 2*pk1+1 < 2*96+1;
366
366
pk1     pk2
367
367
95      50
379
379
1       SIMPLE  t1      ref     key1    key1    4       const   100     Using where
380
380
explain select * from t1 where pk1 < 7500 and key1 = 10;
381
381
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
382
 
1       SIMPLE  t1      index_merge     PRIMARY,key1    key1,PRIMARY    4,4     NULL    ROWS    Using intersect(key1,PRIMARY); Using where
 
382
1       SIMPLE  t1      ref     PRIMARY,key1    key1    4       const   ROWS    Using where
383
383
explain select * from t1 where pktail1ok=1 and key1=10;
384
384
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
385
 
1       SIMPLE  t1      index_merge     key1,pktail1ok  key1,pktail1ok  4,4     NULL    1       Using intersect(key1,pktail1ok); Using where
 
385
1       SIMPLE  t1      ref     key1,pktail1ok  key1    4       const   100     Using where
386
386
explain select * from t1 where pktail2ok=1 and key1=10;
387
387
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
388
 
1       SIMPLE  t1      index_merge     key1,pktail2ok  key1,pktail2ok  4,4     NULL    1       Using intersect(key1,pktail2ok); Using where
 
388
1       SIMPLE  t1      ref     key1,pktail2ok  key1    4       const   100     Using where
389
389
explain select * from t1 where (pktail2ok=1 and pk1< 50000) or key1=10;
390
390
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
391
391
1       SIMPLE  t1      index_merge     PRIMARY,key1,pktail2ok  pktail2ok,key1  8,4     NULL    199     Using sort_union(pktail2ok,key1); Using where
400
400
1       SIMPLE  t1      ref     key1,pktail5bad key1    4       const   100     Using where
401
401
explain select pk1,pk2,key1,key2 from t1 where key1 = 10 and key2=10 limit 10;
402
402
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
403
 
1       SIMPLE  t1      index_merge     key1,key2       key1,key2       4,4     NULL    1       Using intersect(key1,key2); Using where; Using index
 
403
1       SIMPLE  t1      ref     key1,key2       key1    4       const   100     Using where
404
404
select pk1,pk2,key1,key2 from t1 where key1 = 10 and key2=10 limit 10;
405
405
pk1     pk2     key1    key2
406
406
95      50      10      10