474
474
insert t1 select a+1, a+b from t1;
475
475
insert t1 select a+1, a+b from t1;
477
478
show status like 'Slow_queries';
478
479
select count(*) from t1 where a=7;
479
481
show status like 'Slow_queries';
480
482
select count(*) from t1 where b=13;
481
484
show status like 'Slow_queries';
482
485
select count(*) from t1 where b=13 union select count(*) from t1 where a=7;
483
487
show status like 'Slow_queries';
484
488
select count(*) from t1 where a=7 union select count(*) from t1 where b=13;
485
490
show status like 'Slow_queries';
486
491
# additional test for examined rows
488
493
select a from t1 where b not in (1,2,3) union select a from t1 where b not in (4,5,6);
489
495
show status like 'Slow_queries';