Skip to content

Commit

Permalink
Merge pull request #1732 from bcgov/feature/ALCS-1843
Browse files Browse the repository at this point in the history
Add batching and PG_COPY setting
  • Loading branch information
dhaselhan authored May 30, 2024
2 parents 02cfe97 + 448ded2 commit 0d67c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ We receive the parcel data in a GDB from PMBC, this data changes and needs to be
1. Setup Portforwading as necessary to get access to Postgres
1. Truncate the existing parcel_lookup table
1. Run the following command replacing username and password as
necessary: `ogr2ogr -f "PostgreSQL" PG:"host=localhost port=5432 dbname=app user=postgres password=postgres active_schema=alcs" PMBC_export.gdb -nln parcel_lookup`
necessary: `ogr2ogr -f "PostgreSQL" PG:"host=localhost port=5432 dbname=app user=postgres password=postgres active_schema=alcs" PMBC_export.gdb -nln parcel_lookup -gt 10000 --config PG_USE_COPY YES`
1. Be patient, this will import ~2 million rows and will take ~10 minutes

## Running Jobs in Openshift
Expand Down

0 comments on commit 0d67c1c

Please sign in to comment.