From e0b80e3ff0658d2a4ad0c605c8c54ebed6e85af8 Mon Sep 17 00:00:00 2001 From: Emillio Mariscal Date: Mon, 15 Jan 2024 10:13:10 -0300 Subject: [PATCH] Add more indexes for better performance --- setup/underpass.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/underpass.sql b/setup/underpass.sql index 33be7d98..9eb2beb4 100644 --- a/setup/underpass.sql +++ b/setup/underpass.sql @@ -112,3 +112,6 @@ CREATE INDEX ways_line_version_idx ON public.ways_line (version); CREATE INDEX nodes_timestamp_idx ON public.nodes(timestamp DESC); CREATE INDEX ways_poly_timestamp_idx ON public.ways_poly(timestamp DESC); CREATE INDEX ways_line_timestamp_idx ON public.ways_line(timestamp DESC); + +CREATE INDEX idx_changesets_hashtags ON changesets USING gin(hashtags); +CREATE INDEX idx_osm_id_status ON validation (osm_id)