1# 2# Bug #29207450 TINYTEXT COLUMN TAKES LONG TIME IN THE GROUP BY OPERATION. 3# 4create table t1 (id serial primary key auto_increment,a varchar(100),b varchar(100)); 5create table t2 (id serial primary key auto_increment,a varchar(100),b tinytext); 6insert into t1 (a, b) values('a', '746d847beb7e'),('a','746d847beb7e'),('a', '746d847beb7e'),('a','746d847beb7e'),('a','746d847beb7e'); 7insert into t1 (a, b) select 'a', '746d847beb7e' from t1 t1,t1 t2,t1 t3,t1 t4; 8insert into t1 (a, b) select 'a', '746d847beb7e' from t1 t1,t1 t2; 9insert into t2 (a, b) values('a', '746d847beb7e'),('a','746d847beb7e'),('a', '746d847beb7e'),('a','746d847beb7e'),('a','746d847beb7e'); 10insert into t2 (a, b) select 'a', '746d847beb7e' from t2 t1,t2 t2,t2 t3,t2 t4; 11insert into t2 (a, b) select 'a', '746d847beb7e' from t2 t1,t2 t2; 12select count(*) from t1; 13count(*) 14397530 15select count(*) from t2; 16count(*) 17397530 18set global internal_tmp_disk_storage_engine = 'innodb'; 19select b, count(*) from t1 group by b; 20b count(*) 21746d847beb7e 397530 22select b, count(*) from t2 group by b; 23b count(*) 24746d847beb7e 397530 25set global internal_tmp_disk_storage_engine = 'myisam'; 26select b, count(*) from t1 group by b; 27b count(*) 28746d847beb7e 397530 29select b, count(*) from t2 group by b; 30b count(*) 31746d847beb7e 397530 32set global internal_tmp_disk_storage_engine = default; 33drop table t1, t2; 34