mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-25 05:52:32 +03:00
move postcode indexing to end of setup
The search_name tables are needed for finding the parent, so the rest of the database must be indexed.
This commit is contained in:
parent
3714b7ea7d
commit
53f8459e97
@ -523,10 +523,6 @@ if ($aCMDResult['calculate-postcodes'] || $aCMDResult['all']) {
|
||||
|
||||
if (!pg_query($oDB->connection, $sSQL)) fail(pg_last_error($oDB->connection));
|
||||
}
|
||||
|
||||
echo "Indexing postcodes....\n";
|
||||
$sSQL = 'UPDATE location_postcode SET indexed_status = 0';
|
||||
if (!pg_query($oDB->connection, $sSQL)) fail(pg_last_error($oDB->connection));
|
||||
}
|
||||
|
||||
if ($aCMDResult['osmosis-init']) {
|
||||
@ -543,6 +539,10 @@ if ($aCMDResult['index'] || $aCMDResult['all']) {
|
||||
passthruCheckReturn($sBaseCmd.' -r 5 -R 25');
|
||||
if (!$aCMDResult['index-noanalyse']) pgsqlRunScript('ANALYSE');
|
||||
passthruCheckReturn($sBaseCmd.' -r 26');
|
||||
|
||||
echo "Indexing postcodes....\n";
|
||||
$sSQL = 'UPDATE location_postcode SET indexed_status = 0';
|
||||
if (!pg_query($oDB->connection, $sSQL)) fail(pg_last_error($oDB->connection));
|
||||
}
|
||||
|
||||
if ($aCMDResult['create-search-indices'] || $aCMDResult['all']) {
|
||||
|
Loading…
Reference in New Issue
Block a user