mysql -S$mysqlsocket-u$mysqluser-D$dbname-e"set session tokudb_load_save_space=$tokudb_load_save_space; load data infile '$tpchdir/data/tpch${SCALE}G/$tblname.tbl' into table $tblname fields terminated by '|'">>$runfile 2>&1
mysql -S$mysqlsocket-u$mysqluser-D$dbname-e"set global tokudb_loader_memory_size=$tokudb_loader_memory_size;\
set tokudb_load_save_space=$tokudb_load_save_space;\
load data infile '$tpchdir/data/tpch${SCALE}G/$tblname.tbl' into table $tblname fields terminated by '|';\
set global tokudb_loader_memory_size=$default_loader_memory_size">>$runfile 2>&1
@@ -228,7 +245,11 @@ if [ $check != 0 -a $testresult = "PASS" ] ; then
...
@@ -228,7 +245,11 @@ if [ $check != 0 -a $testresult = "PASS" ] ; then
for tblname in lineitem ;do
for tblname in lineitem ;do
echo`date` add clustering index $tblname>>$runfile
echo`date` add clustering index $tblname>>$runfile
start=$(date +%s)
start=$(date +%s)
mysql -S$mysqlsocket-u$mysqluser-D$dbname-e"set session tokudb_create_index_online=0;create clustering index i_shipdate on lineitem (l_shipdate)">>$runfile 2>&1
mysql -S$mysqlsocket-u$mysqluser-D$dbname-e"set global tokudb_loader_memory_size=$tokudb_loader_memory_size;\
set tokudb_load_save_space=$tokudb_load_save_space;\
set session tokudb_create_index_online=0;\
create clustering index i_shipdate on lineitem (l_shipdate);\
set global tokudb_loader_memory_size=$default_loader_memory_size">>$runfile 2>&1
exitcode=$?
exitcode=$?
let loadtime=$(date +%s)-$start
let loadtime=$(date +%s)-$start
echo`date` add clustering index $tblname$exitcodeloadtime=$loadtime>>$runfile
echo`date` add clustering index $tblname$exitcodeloadtime=$loadtime>>$runfile
...
@@ -304,7 +325,7 @@ if [ $compare != 0 -a $testresult = "PASS" ] ; then
...
@@ -304,7 +325,7 @@ if [ $compare != 0 -a $testresult = "PASS" ] ; then