]> git.openstreetmap.org Git - nominatim.git/commitdiff
remove intermediate ANALYSE while indexing
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 13 May 2012 08:50:08 +0000 (10:50 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 13 May 2012 08:50:08 +0000 (10:50 +0200)
Autovacuum does a much better job.

utils/setup.php

index b40bad3aa24de2df2663a13dde30fdf10c4f99d5..4b60815cd89fad0f41ef15fd7a9a175e677c8e0e 100755 (executable)
                $sOutputFile = '';
                if (isset($aCMDResult['index-output'])) $sOutputFile = ' -F '.$aCMDResult['index-output'];
                $sBaseCmd = CONST_BasePath.'/nominatim/nominatim -i -d '.$aDSNInfo['database'].' -t '.$iInstances.$sOutputFile;
-               passthru($sBaseCmd.' -R 4');
-               pgsqlRunScript('ANALYSE');
-               passthru($sBaseCmd.' -r 5 -R 25');
-               pgsqlRunScript('ANALYSE');
-               passthru($sBaseCmd.' -r 26');
+               passthru($sBaseCmd);
        }
 
        if ($aCMDResult['create-search-indices'] || $aCMDResult['all'])