Speed up pbxt.range test a bit

This commit is contained in:
Michael Widenius 2011-05-05 23:28:42 +03:00
parent d5caa00161
commit 5cf6ccd29e
2 changed files with 5 additions and 0 deletions

View File

@ -362,6 +362,7 @@ name char(1) not null,
uid int not null,
primary key (id),
index uid_index (uid));
begin;
insert into t1(id, uid, name) values(1, 0, ' ');
insert into t1(uid, name) values(0, ' ');
insert into t2(uid, name) select uid, name from t1;
@ -410,6 +411,7 @@ insert into t2(uid, name) values
insert into t1(uid, name) select uid, name from t2 order by uid;
delete from t2;
insert into t2(id, uid, name) select id, uid, name from t1;
commit;
select count(*) from t1;
count(*)
1026

View File

@ -322,6 +322,7 @@ create table t2 (
primary key (id),
index uid_index (uid));
begin;
insert into t1(id, uid, name) values(1, 0, ' ');
insert into t1(uid, name) values(0, ' ');
@ -375,6 +376,8 @@ insert into t1(uid, name) select uid, name from t2 order by uid;
delete from t2;
insert into t2(id, uid, name) select id, uid, name from t1;
commit;
select count(*) from t1;
select count(*) from t2;