From 883a997dcf531abc45c1c93a7695bbdec4fe5a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Wed, 30 Sep 2020 10:30:18 +0200 Subject: [PATCH] Remove large unused index osm_highway_linestring_highway_idx (#1002) The index `osm_highway_linestring_highway_idx` is not used. There is also a used partial index `osm_highway_linestring_highway_partial_idx`. I cross check the usage of the index from postgres query stats and all SQL query code where the table `osm_highway_linestring` is refered. This index is relatively big. --- layers/transportation/update_transportation_merge.sql | 4 ---- 1 file changed, 4 deletions(-) diff --git a/layers/transportation/update_transportation_merge.sql b/layers/transportation/update_transportation_merge.sql index f6179440..46912897 100644 --- a/layers/transportation/update_transportation_merge.sql +++ b/layers/transportation/update_transportation_merge.sql @@ -16,10 +16,6 @@ DROP TRIGGER IF EXISTS trigger_refresh ON transportation.updates; -- Improve performance of the sql in transportation_name/network_type.sql -CREATE INDEX IF NOT EXISTS osm_highway_linestring_highway_idx - ON osm_highway_linestring (highway); - --- Improve performance of the sql below CREATE INDEX IF NOT EXISTS osm_highway_linestring_highway_partial_idx ON osm_highway_linestring (highway) WHERE highway IN ('motorway', 'trunk', 'primary', 'construction');