Commit 46c4f3a7 authored by Michael Widenius's avatar Michael Widenius Committed by Sergei Golubchik

speed up tokudb tests by adding begin/commit around insert loops

Marked very long running tests as big_test
parent 3d67c68a
...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; ...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
drop table if exists s; drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
begin;
insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9);
insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9);
insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9);
...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) ...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9)
insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9);
insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9);
insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9);
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
create index i_a on s(a); create index i_a on s(a);
delete from s where a=10000; delete from s where a=10000;
...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; ...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
drop table if exists s; drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
begin;
insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9);
insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9);
insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9);
...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) ...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9)
insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9);
insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9);
insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9);
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
create clustering index i_a on s(a); create clustering index i_a on s(a);
delete from s where a=10000; delete from s where a=10000;
...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; ...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
drop table if exists s; drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
begin;
insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9);
insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9);
insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9);
...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) ...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9)
insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9);
insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9);
insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9);
commit;
create index i_a on s(a); create index i_a on s(a);
delete from s where a=10000; delete from s where a=10000;
show create table s; show create table s;
...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; ...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
drop table if exists s; drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
begin;
insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9);
insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9);
insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9);
...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) ...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9)
insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9);
insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9);
insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9);
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
create index i_a on s(a); create index i_a on s(a);
delete from s where a=10000; delete from s where a=10000;
...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; ...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
drop table if exists s; drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
begin;
insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9);
insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9);
insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9);
...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) ...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9)
insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9);
insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9);
insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9);
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
create index i_a on s(a); create index i_a on s(a);
insert into s values (1000000000,10000); insert into s values (1000000000,10000);
...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; ...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
drop table if exists s; drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
begin;
insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9);
insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9);
insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9);
...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) ...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9)
insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9);
insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9);
insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9);
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
create index i_a on s(a) clustering=yes; create index i_a on s(a) clustering=yes;
insert into s values (1000000000,10000); insert into s values (1000000000,10000);
...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; ...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
drop table if exists s; drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
begin;
insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9);
insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9);
insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9);
...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) ...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9)
insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9);
insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9);
insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9);
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
create index i_a on s(a); create index i_a on s(a);
update s set a=20000+10000 where a=10000; update s set a=20000+10000 where a=10000;
...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb'; ...@@ -2,6 +2,7 @@ SET DEFAULT_STORAGE_ENGINE='tokudb';
# Establish connection conn1 (user = root) # Establish connection conn1 (user = root)
drop table if exists s; drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
begin;
insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9); insert into s values (10000,0),(10000,1),(10000,2),(10000,3),(10000,4),(10000,5),(10000,6),(10000,7),(10000,8),(10000,9);
insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9); insert into s values (9999,0),(9999,1),(9999,2),(9999,3),(9999,4),(9999,5),(9999,6),(9999,7),(9999,8),(9999,9);
insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9); insert into s values (9998,0),(9998,1),(9998,2),(9998,3),(9998,4),(9998,5),(9998,6),(9998,7),(9998,8),(9998,9);
...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9) ...@@ -10002,6 +10003,7 @@ insert into s values (4,0),(4,1),(4,2),(4,3),(4,4),(4,5),(4,6),(4,7),(4,8),(4,9)
insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9); insert into s values (3,0),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6),(3,7),(3,8),(3,9);
insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9); insert into s values (2,0),(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(2,7),(2,8),(2,9);
insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9); insert into s values (1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(1,6),(1,7),(1,8),(1,9);
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
create index i_a on s(a) clustering=yes; create index i_a on s(a) clustering=yes;
update s set a=20000+10000 where a=10000; update s set a=20000+10000 where a=10000;
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
# test that deletes work when hot indexing is on # test that deletes work when hot indexing is on
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
...@@ -14,11 +16,13 @@ drop table if exists s; ...@@ -14,11 +16,13 @@ drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
# populate table s # populate table s
begin;
let $a = 10000; let $a = 10000;
while ($a) { while ($a) {
eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9);
dec $a; dec $a;
} }
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
send create index i_a on s(a); send create index i_a on s(a);
......
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
# test that deletes work when hot indexing is on # test that deletes work when hot indexing is on
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
...@@ -14,11 +16,13 @@ drop table if exists s; ...@@ -14,11 +16,13 @@ drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
# populate table s # populate table s
begin;
let $a = 10000; let $a = 10000;
while ($a) { while ($a) {
eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9);
dec $a; dec $a;
} }
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
send create index i_a on s(a) clustering=yes; send create index i_a on s(a) clustering=yes;
......
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
# test that deletes work when hot indexing is on # test that deletes work when hot indexing is on
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
...@@ -14,11 +16,13 @@ drop table if exists s; ...@@ -14,11 +16,13 @@ drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
# populate table s # populate table s
begin;
let $a = 10000; let $a = 10000;
while ($a) { while ($a) {
eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9);
dec $a; dec $a;
} }
commit;
# set tokudb_create_index_online=1; # set tokudb_create_index_online=1;
send create index i_a on s(a); send create index i_a on s(a);
......
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
# test that deletes work when hot indexing is on # test that deletes work when hot indexing is on
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
...@@ -14,11 +16,13 @@ drop table if exists s; ...@@ -14,11 +16,13 @@ drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
# populate table s # populate table s
begin;
let $a = 10000; let $a = 10000;
while ($a) { while ($a) {
eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9);
dec $a; dec $a;
} }
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
send create index i_a on s(a); send create index i_a on s(a);
......
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
# test that deletes work when hot indexing is on # test that deletes work when hot indexing is on
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
...@@ -14,11 +16,13 @@ drop table if exists s; ...@@ -14,11 +16,13 @@ drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
# populate table s # populate table s
begin;
let $a = 10000; let $a = 10000;
while ($a) { while ($a) {
eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9);
dec $a; dec $a;
} }
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
send create index i_a on s(a); send create index i_a on s(a);
......
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
# test that deletes work when hot indexing is on # test that deletes work when hot indexing is on
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
...@@ -14,11 +16,13 @@ drop table if exists s; ...@@ -14,11 +16,13 @@ drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
# populate table s # populate table s
begin;
let $a = 10000; let $a = 10000;
while ($a) { while ($a) {
eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9);
dec $a; dec $a;
} }
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
send create index i_a on s(a) clustering=yes; send create index i_a on s(a) clustering=yes;
......
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
# test that deletes work when hot indexing is on with replace into optimization # test that deletes work when hot indexing is on with replace into optimization
# test is checking #3406 # test is checking #3406
...@@ -16,11 +18,13 @@ create table s (a int auto_increment, b int, c int, primary key (a)); ...@@ -16,11 +18,13 @@ create table s (a int auto_increment, b int, c int, primary key (a));
--echo # populate table s --echo # populate table s
--disable_query_log --disable_query_log
begin;
let $a = 10000; let $a = 10000;
while ($a) { while ($a) {
eval insert into s (b,c) values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); eval insert into s (b,c) values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9);
dec $a; dec $a;
} }
commit;
--enable_query_log --enable_query_log
--echo # done inserting elements --echo # done inserting elements
......
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
# test that deletes work when hot indexing is on # test that deletes work when hot indexing is on
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
...@@ -16,11 +18,13 @@ create table s (a int, b varchar(2000)); ...@@ -16,11 +18,13 @@ create table s (a int, b varchar(2000));
--disable_query_log --disable_query_log
# populate table s # populate table s
begin;
let $a = 10000; let $a = 10000;
while ($a) { while ($a) {
eval insert into s values ($a,repeat('a', 2000)),($a,repeat('b', 2000)),($a,repeat('c', 2000)),($a,repeat('d', 2000)),($a,repeat('e', 2000)),($a,repeat('f', 2000)),($a,repeat('g', 2000)),($a,repeat('h', 2000)),($a,repeat('i', 2000)),($a,repeat('j', 2000)); eval insert into s values ($a,repeat('a', 2000)),($a,repeat('b', 2000)),($a,repeat('c', 2000)),($a,repeat('d', 2000)),($a,repeat('e', 2000)),($a,repeat('f', 2000)),($a,repeat('g', 2000)),($a,repeat('h', 2000)),($a,repeat('i', 2000)),($a,repeat('j', 2000));
dec $a; dec $a;
} }
commit;
--enable_query_log --enable_query_log
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
......
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
# test that deletes work when hot indexing is on # test that deletes work when hot indexing is on
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
...@@ -14,11 +16,13 @@ drop table if exists s; ...@@ -14,11 +16,13 @@ drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
# populate table s # populate table s
begin;
let $a = 10000; let $a = 10000;
while ($a) { while ($a) {
eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9);
dec $a; dec $a;
} }
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
send create index i_a on s(a); send create index i_a on s(a);
......
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
# test that deletes work when hot indexing is on # test that deletes work when hot indexing is on
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
...@@ -14,11 +16,13 @@ drop table if exists s; ...@@ -14,11 +16,13 @@ drop table if exists s;
create table s (a int, b int); create table s (a int, b int);
# populate table s # populate table s
begin;
let $a = 10000; let $a = 10000;
while ($a) { while ($a) {
eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9); eval insert into s values ($a,0),($a,1),($a,2),($a,3),($a,4),($a,5),($a,6),($a,7),($a,8),($a,9);
dec $a; dec $a;
} }
commit;
set tokudb_create_index_online=1; set tokudb_create_index_online=1;
send create index i_a on s(a) clustering=yes; send create index i_a on s(a) clustering=yes;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
......
# This test takes rather long time so let us run it only in --big-test mode
--source include/big_test.inc
#--source include/have_tokudb.inc #--source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE='tokudb'; SET DEFAULT_STORAGE_ENGINE='tokudb';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment