mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-27 00:49:55 +03:00
create postcode id index earlier
Now that the indexer takes care of indexing the postcode tables, the id index is needed to find the rows to index.
This commit is contained in:
parent
4f1bdde32e
commit
5dabc0aca8
@ -35,9 +35,6 @@ CREATE INDEX {{sql.if_index_not_exists}} idx_osmline_parent_place_id
|
||||
CREATE INDEX {{sql.if_index_not_exists}} idx_osmline_parent_osm_id
|
||||
ON location_property_osmline USING BTREE (osm_id) {{db.tablespace.search_index}};
|
||||
|
||||
CREATE UNIQUE INDEX {{sql.if_index_not_exists}} idx_postcode_id
|
||||
ON location_postcode USING BTREE (place_id) {{db.tablespace.search_index}};
|
||||
|
||||
CREATE INDEX {{sql.if_index_not_exists}} idx_postcode_postcode
|
||||
ON location_postcode USING BTREE (postcode) {{db.tablespace.search_index}};
|
||||
|
||||
|
@ -209,6 +209,7 @@ CREATE TABLE location_postcode (
|
||||
postcode TEXT,
|
||||
geometry GEOMETRY(Geometry, 4326)
|
||||
);
|
||||
CREATE UNIQUE INDEX idx_postcode_id ON location_postcode USING BTREE (place_id) {{db.tablespace.search_index}};
|
||||
CREATE INDEX idx_postcode_geometry ON location_postcode USING GIST (geometry) {{db.tablespace.address_index}};
|
||||
GRANT SELECT ON location_postcode TO "{{config.DATABASE_WEBUSER}}" ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user