Commit c8fc4d66 authored by Rich Prohaska's avatar Rich Prohaska

#80 default compress tokudb bulk loader temp files

parent e99cb96b
...@@ -96,6 +96,7 @@ popd ...@@ -96,6 +96,7 @@ popd
if [ $dbname = "atc" -a $engine != "tokudb" ] ; then dbname="atc_$engine"; fi if [ $dbname = "atc" -a $engine != "tokudb" ] ; then dbname="atc_$engine"; fi
runfile=$testresultsdir/$dbname-$tblname-$mysqlbuild-$mysqlserver runfile=$testresultsdir/$dbname-$tblname-$mysqlbuild-$mysqlserver
if [ $tokudb_load_save_space != 0 ] ; then runfile=$runfile-compress; fi
rm -rf $runfile rm -rf $runfile
testresult="PASS" testresult="PASS"
...@@ -173,11 +174,7 @@ fi ...@@ -173,11 +174,7 @@ fi
if [ $load -ne 0 -a $testresult = "PASS" ] ; then if [ $load -ne 0 -a $testresult = "PASS" ] ; then
echo `date` load data >>$runfile echo `date` load data >>$runfile
start=$(date +%s) start=$(date +%s)
if [ $tokudb_load_save_space -ne 0 ] ; then
mysql -S $mysqlsocket -u $mysqluser -D $dbname -e "set tokudb_load_save_space=$tokudb_load_save_space; load data infile '$basedir/atc_On_Time_Performance.mysql.csv' into table $tblname" >>$runfile 2>&1 mysql -S $mysqlsocket -u $mysqluser -D $dbname -e "set tokudb_load_save_space=$tokudb_load_save_space; load data infile '$basedir/atc_On_Time_Performance.mysql.csv' into table $tblname" >>$runfile 2>&1
else
mysql -S $mysqlsocket -u $mysqluser -D $dbname -e "load data infile '$basedir/atc_On_Time_Performance.mysql.csv' into table $tblname" >>$runfile 2>&1
fi
exitcode=$? exitcode=$?
let loadtime=$(date +%s)-$start let loadtime=$(date +%s)-$start
echo `date` load data loadtime=$loadtime $exitcode >>$runfile echo `date` load data loadtime=$loadtime $exitcode >>$runfile
......
...@@ -314,7 +314,7 @@ fi ...@@ -314,7 +314,7 @@ fi
# commit results # commit results
if [ $commit != 0 ] ; then if [ $commit != 0 ] ; then
svn add $runfile svn add $runfile
retry svn commit -m \"$testresult $dbname $mysqlbuild $mysqlserver compress=$tokudb_load_save_space\" $runfile retry svn commit -m \"$testresult $dbname $mysqlbuild $mysqlserver\" $runfile
fi fi
popd popd
......
...@@ -135,10 +135,10 @@ static uint get_pk_insert_mode(THD* thd) { ...@@ -135,10 +135,10 @@ static uint get_pk_insert_mode(THD* thd) {
static MYSQL_THDVAR_BOOL(load_save_space, static MYSQL_THDVAR_BOOL(load_save_space,
0, 0,
"if on, intial loads are slower but take less space", "compress intermediate bulk loader files to save space",
NULL, NULL,
NULL, NULL,
false true
); );
static bool get_load_save_space(THD* thd) { static bool get_load_save_space(THD* thd) {
......
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