X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/55b59ea1396741b5f152dba3ff4ade8266442fc1..982de35051bed16cb57739c7b4acabe4c7f251ac:/utils/setup.php diff --git a/utils/setup.php b/utils/setup.php index 049ef860..fb83dd0a 100755 --- a/utils/setup.php +++ b/utils/setup.php @@ -126,8 +126,9 @@ echo "Please download and build osm2pgsql.\nIf it is already installed, check the path in your local settings (settings/local.php) file.\n"; fail("osm2pgsql not found in '$osm2pgsql'"); } + $osm2pgsql .= ' --tablespace-slim-index ssd --tablespace-main-index ssd --tablespace-main-data ssd --tablespace-slim-data data'; $osm2pgsql .= ' -lsc -O gazetteer --hstore'; - $osm2pgsql .= ' -C '.$iCacheMemory; + $osm2pgsql .= ' -C 16000'; $osm2pgsql .= ' -d '.$aDSNInfo['database'].' '.$aCMDResult['osm-file']; passthruCheckReturn($osm2pgsql); @@ -320,6 +321,7 @@ echo '.'; } echo "\n"; + pgsqlRunScript('ALTER TABLE place SET TABLESPACE "data"'); echo "Reanalysing database...\n"; pgsqlRunScript('ANALYSE'); }