Skip to content

Commit

Permalink
Merge pull request #3349 from lonvia/remove-way-geometry-table-after-…
Browse files Browse the repository at this point in the history
…import

Drop lower-rank-ways index after import
  • Loading branch information
lonvia authored Feb 28, 2024
2 parents 247065f + d7bb449 commit 3b6d35f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib-sql/indices.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 3b6d35f

Please sign in to comment.