]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #3350 from lonvia/improve-postcode-handling
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 28 Feb 2024 17:45:31 +0000 (18:45 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 17:45:31 +0000 (18:45 +0100)
Improve handling of postcode areas

lib-sql/indices.sql

index ed078895ee8901473ac0f613b97e6d9cabe8c88e..b802a660e7c31446c5a62483707de1e4f771228f 100644 (file)
@@ -23,6 +23,10 @@ CREATE INDEX IF NOT EXISTS idx_placex_parent_place_id
 ---
 CREATE INDEX IF NOT EXISTS idx_placex_geometry ON placex
   USING GIST (geometry) {{db.tablespace.search_index}};
+-- Index is needed during import but can be dropped as soon as a full
+-- geometry index is in place. The partial index is almost as big as the full
+-- index.
+DROP INDEX IF EXISTS idx_placex_geometry_lower_rank_ways;
 ---
 CREATE INDEX IF NOT EXISTS idx_placex_geometry_reverse_lookupPolygon
   ON placex USING gist (geometry) {{db.tablespace.search_index}}