add postgis tuning to speed up import
This commit is contained in:
parent
083309db77
commit
bbc02f5297
2
run.sh
2
run.sh
@ -37,6 +37,8 @@ if [ "$1" = "import" ]; then
|
|||||||
sudo -u postgres createdb -E UTF8 -O renderer gis
|
sudo -u postgres createdb -E UTF8 -O renderer gis
|
||||||
sudo -u postgres psql -d gis -c "CREATE EXTENSION postgis;"
|
sudo -u postgres psql -d gis -c "CREATE EXTENSION postgis;"
|
||||||
sudo -u postgres psql -d gis -c "CREATE EXTENSION hstore;"
|
sudo -u postgres psql -d gis -c "CREATE EXTENSION hstore;"
|
||||||
|
sudo -u postgres psql -d gis -c "ALTER SYSTEM SET work_mem='16MB';"
|
||||||
|
sudo -u postgres psql -d gis -c "ALTER SYSTEM SET maintenance_work_mem='256MB';"
|
||||||
sudo -u postgres psql -d gis -c "ALTER TABLE geometry_columns OWNER TO renderer;"
|
sudo -u postgres psql -d gis -c "ALTER TABLE geometry_columns OWNER TO renderer;"
|
||||||
sudo -u postgres psql -d gis -c "ALTER TABLE spatial_ref_sys OWNER TO renderer;"
|
sudo -u postgres psql -d gis -c "ALTER TABLE spatial_ref_sys OWNER TO renderer;"
|
||||||
setPostgresPassword
|
setPostgresPassword
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user