Skip to content

Commit

Permalink
Update load and index script to use lz4 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Mar 14, 2024
1 parent eb63376 commit f2d989c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function print {

cd "$dir"

for file in *.tsv.gz
for file in *.tsv.lz4
do
print $file
tbl=`echo $file | sed "s/.tsv.gz//"`
tbl=`echo $file | sed "s/.tsv.lz4//"`
echo "zcatting - LOAD DATA LOCAL INFILE '$file' INTO TABLE $tbl"
zcat $file | mariadb --local-infile=1 -uunipept -punipept $db -e "LOAD DATA LOCAL INFILE '/dev/stdin' INTO TABLE $tbl;SHOW WARNINGS" 2>&1
done
Expand Down

0 comments on commit f2d989c

Please sign in to comment.