From 985e65df7553c7707607752789840302662cf602 Mon Sep 17 00:00:00 2001 From: Tobias Ibounig Date: Fri, 23 Feb 2024 08:17:08 +0100 Subject: [PATCH] Faster Download --- .github/workflows/aligulac-import.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aligulac-import.yaml b/.github/workflows/aligulac-import.yaml index 71afa85..4de48bc 100644 --- a/.github/workflows/aligulac-import.yaml +++ b/.github/workflows/aligulac-import.yaml @@ -23,7 +23,7 @@ jobs: steps: - name: Install postgres client & rg - run: sudo apt-get install -y postgresql-client ripgrep + run: sudo apt-get install -y postgresql-client ripgrep axel pigz - name: Postgres client version run: psql --version - name: Install yq @@ -31,7 +31,7 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 - name: Download Aligulac dump - run: wget -qO- http://static.aligulac.com/aligulac.sql.gz | gzip -d > aligulac.sql + run: axel http://static.aligulac.com/aligulac.sql.gz && pigz -dc aligulac.sql.gz > aligulac.sql - name: Modify dump for faster import run: rg --passthru "^CREATE TABLE" -r "CREATE UNLOGGED TABLE" aligulac.sql > aligulac2.sql - name: grep changes