mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
disable multithreading in osm2pgsql
not really useful for gazetteer plugin and producing too much overhead
This commit is contained in:
@@ -200,7 +200,7 @@
|
|||||||
$osm2pgsql .= ' --tablespace-main-data '.CONST_Tablespace_Place_Data;
|
$osm2pgsql .= ' --tablespace-main-data '.CONST_Tablespace_Place_Data;
|
||||||
if (CONST_Tablespace_Place_Index)
|
if (CONST_Tablespace_Place_Index)
|
||||||
$osm2pgsql .= ' --tablespace-main-index '.CONST_Tablespace_Place_Index;
|
$osm2pgsql .= ' --tablespace-main-index '.CONST_Tablespace_Place_Index;
|
||||||
$osm2pgsql .= ' -lsc -O gazetteer --hstore';
|
$osm2pgsql .= ' -lsc -O gazetteer --hstore --number-processes 1';
|
||||||
$osm2pgsql .= ' -C '.$iCacheMemory;
|
$osm2pgsql .= ' -C '.$iCacheMemory;
|
||||||
$osm2pgsql .= ' -P '.$aDSNInfo['port'];
|
$osm2pgsql .= ' -P '.$aDSNInfo['port'];
|
||||||
$osm2pgsql .= ' -d '.$aDSNInfo['database'].' '.$aCMDResult['osm-file'];
|
$osm2pgsql .= ' -d '.$aDSNInfo['database'].' '.$aCMDResult['osm-file'];
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
$iCacheMemory = getCacheMemoryMB();
|
$iCacheMemory = getCacheMemoryMB();
|
||||||
echo "WARNING: resetting cache memory to $iCacheMemory\n";
|
echo "WARNING: resetting cache memory to $iCacheMemory\n";
|
||||||
}
|
}
|
||||||
$sOsm2pgsqlCmd = CONST_Osm2pgsql_Binary.' -klas -C '.$iCacheMemory.' -O gazetteer -d '.$aDSNInfo['database'].' -P '.$aDSNInfo['port'];
|
$sOsm2pgsqlCmd = CONST_Osm2pgsql_Binary.' -klas --number-processes 1 -C '.$iCacheMemory.' -O gazetteer -d '.$aDSNInfo['database'].' -P '.$aDSNInfo['port'];
|
||||||
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
|
if (!is_null(CONST_Osm2pgsql_Flatnode_File))
|
||||||
{
|
{
|
||||||
$sOsm2pgsqlCmd .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
|
$sOsm2pgsqlCmd .= ' --flat-nodes '.CONST_Osm2pgsql_Flatnode_File;
|
||||||
|
|||||||
Reference in New Issue
Block a user