]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #3349 from lonvia/remove-way-geometry-table-after-import
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 28 Feb 2024 16:47:34 +0000 (17:47 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Feb 2024 16:47:34 +0000 (17:47 +0100)
Drop lower-rank-ways index after import

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}}