optimize indexes for interpolation lines

Do not index 'inactive' rows (with startnumber is null) where possible.
This commit is contained in:
Sarah Hoffmann
2022-01-25 11:24:13 +01:00
parent 638ed15ada
commit 9f64c34f1a
3 changed files with 13 additions and 8 deletions

View File

@@ -106,7 +106,8 @@ CREATE TABLE location_property_osmline (
){{db.tablespace.search_data}};
CREATE UNIQUE INDEX idx_osmline_place_id ON location_property_osmline USING BTREE (place_id) {{db.tablespace.search_index}};
CREATE INDEX idx_osmline_geometry_sector ON location_property_osmline USING BTREE (geometry_sector) {{db.tablespace.address_index}};
CREATE INDEX idx_osmline_linegeo ON location_property_osmline USING GIST (linegeo) {{db.tablespace.search_index}};
CREATE INDEX idx_osmline_linegeo ON location_property_osmline USING GIST (linegeo) {{db.tablespace.search_index}}
WHERE startnumber is not null;
GRANT SELECT ON location_property_osmline TO "{{config.DATABASE_WEBUSER}}";
drop table IF EXISTS search_name;