mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
analyze postcode table during import
This commit is contained in:
@@ -117,6 +117,7 @@ class _PostcodeCollector:
|
|||||||
WHERE country_code = %s and postcode = any(%s)
|
WHERE country_code = %s and postcode = any(%s)
|
||||||
AND osm_id is null
|
AND osm_id is null
|
||||||
""", (self.country, to_delete))
|
""", (self.country, to_delete))
|
||||||
|
cur.execute("ANALYSE location_postcodes")
|
||||||
|
|
||||||
def _update_from_external(self, analyzer: AbstractAnalyzer, project_dir: Path) -> None:
|
def _update_from_external(self, analyzer: AbstractAnalyzer, project_dir: Path) -> None:
|
||||||
""" Look for an external postcode file for the active country in
|
""" Look for an external postcode file for the active country in
|
||||||
|
|||||||
Reference in New Issue
Block a user