Skip to content

Commit

Permalink
Faster Download
Browse files Browse the repository at this point in the history
  • Loading branch information
tobijdc authored Feb 23, 2024
1 parent 507427a commit 985e65d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aligulac-import.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ 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
run: sudo snap install yq --channel=v4/stable
- 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
Expand Down

0 comments on commit 985e65d

Please sign in to comment.