Speed up pbxt.range test a bit
This commit is contained in:
parent
d5caa00161
commit
5cf6ccd29e
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user