mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
clean up intermediate tables earlier with --drop
When --drop is given, we can remove all node geometry information already after the import with osm2pgsql. Also drop all unnecessary tables before creating the final indices.
This commit is contained in:
9
sql/indices_updates.src.sql
Normal file
9
sql/indices_updates.src.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
-- Indices used only during search and update.
|
||||
-- These indices are created only after the indexing process is done.
|
||||
|
||||
CREATE INDEX CONCURRENTLY idx_placex_pendingsector ON placex USING BTREE (rank_search,geometry_sector) {ts:address-index} where indexed_status > 0;
|
||||
|
||||
CREATE INDEX CONCURRENTLY idx_location_area_country_place_id ON location_area_country USING BTREE (place_id) {ts:address-index};
|
||||
|
||||
DROP INDEX CONCURRENTLY IF EXISTS place_id_idx;
|
||||
CREATE UNIQUE INDEX CONCURRENTLY idx_place_osm_unique on place using btree(osm_id,osm_type,class) {ts:address-index};
|
||||
Reference in New Issue
Block a user