Skip to content

Commit

Permalink
Debug create index
Browse files Browse the repository at this point in the history
  • Loading branch information
tobijdc authored Feb 23, 2024
1 parent 809cfdd commit 507427a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/aligulac-import.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Modify dump for faster import
run: rg --passthru "^CREATE TABLE" -r "CREATE UNLOGGED TABLE" aligulac.sql > aligulac2.sql
- name: grep changes
run: rg UNLOGGED aligulac2.sql
run: rg UNLOGGED aligulac2.sql && rg -C 2 "CREATE INDEX" aligulac2.sql
- name: DB Settings for faster import
run: PGPASSWORD=postgres psql -h localhost -p 5432 -d postgres -U postgres -c "ALTER SYSTEM SET wal_level = minimal;" -c "ALTER SYSTEM SET fsync = off;" -c "ALTER SYSTEM SET full_page_writes = off;" -c "ALTER SYSTEM SET synchronous_commit = off;" -c "SELECT pg_reload_conf();" -c "SET max_parallel_maintenance_workers TO 2;" -c "SET maintenance_work_mem TO '1 GB';" -c "SHOW wal_level;"
- name: Import Aligulac DB
Expand Down

0 comments on commit 507427a

Please sign in to comment.