mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
#80 default compress tokudb bulk loader temp files
This commit is contained in:
parent
4f7ce37a90
commit
d6348cb127
3 changed files with 5 additions and 8 deletions
|
@ -96,6 +96,7 @@ popd
|
|||
if [ $dbname = "atc" -a $engine != "tokudb" ] ; then dbname="atc_$engine"; fi
|
||||
|
||||
runfile=$testresultsdir/$dbname-$tblname-$mysqlbuild-$mysqlserver
|
||||
if [ $tokudb_load_save_space != 0 ] ; then runfile=$runfile-compress; fi
|
||||
rm -rf $runfile
|
||||
|
||||
testresult="PASS"
|
||||
|
@ -173,11 +174,7 @@ fi
|
|||
if [ $load -ne 0 -a $testresult = "PASS" ] ; then
|
||||
echo `date` load data >>$runfile
|
||||
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
|
||||
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
|
||||
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
|
||||
exitcode=$?
|
||||
let loadtime=$(date +%s)-$start
|
||||
echo `date` load data loadtime=$loadtime $exitcode >>$runfile
|
||||
|
|
|
@ -314,7 +314,7 @@ fi
|
|||
# commit results
|
||||
if [ $commit != 0 ] ; then
|
||||
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
|
||||
|
||||
popd
|
||||
|
|
|
@ -135,10 +135,10 @@ static uint get_pk_insert_mode(THD* thd) {
|
|||
|
||||
static MYSQL_THDVAR_BOOL(load_save_space,
|
||||
0,
|
||||
"if on, intial loads are slower but take less space",
|
||||
"compress intermediate bulk loader files to save space",
|
||||
NULL,
|
||||
NULL,
|
||||
false
|
||||
true
|
||||
);
|
||||
|
||||
static bool get_load_save_space(THD* thd) {
|
||||
|
|
Loading…
Add table
Reference in a new issue