Skip to content

Commit 448ded2

Browse files
author
Daniel Haselhan
committed
Add batching and PG_COPY setting
* Uses copy instead of insert for better performance
1 parent 02cfe97 commit 448ded2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/jobs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ We receive the parcel data in a GDB from PMBC, this data changes and needs to be
88
1. Setup Portforwading as necessary to get access to Postgres
99
1. Truncate the existing parcel_lookup table
1010
1. Run the following command replacing username and password as
11-
necessary: `ogr2ogr -f "PostgreSQL" PG:"host=localhost port=5432 dbname=app user=postgres password=postgres active_schema=alcs" PMBC_export.gdb -nln parcel_lookup`
11+
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`
1212
1. Be patient, this will import ~2 million rows and will take ~10 minutes
1313

1414
## Running Jobs in Openshift

0 commit comments

Comments
 (0)