add postgis tuning to speed up import
This commit is contained in:
1 parent
083309db77
commit
bbc02f5297
1 file changed
+2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user