From 5dcdab19b13abb7f3168c8527a204d62c44050cc Mon Sep 17 00:00:00 2001 From: Matthew Cengia Date: Tue, 22 Mar 2022 14:58:56 +1100 Subject: [PATCH] Update table names in Search/Optimisation docs --- docs/install.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/install.md b/docs/install.md index 2d4961a9..45c62c2a 100644 --- a/docs/install.md +++ b/docs/install.md @@ -86,11 +86,11 @@ may want to add an index. For that, you should do so: CREATE EXTENSION btree_gin; ALTER FUNCTION unaccent(text) IMMUTABLE; ALTER FUNCTION to_tsvector(text) IMMUTABLE; - CREATE INDEX search_idx ON leaflet_storage_map USING gin(to_tsvector(unaccent(name)), share_status); + CREATE INDEX search_idx ON umap_map USING gin(to_tsvector(unaccent(name)), share_status); ## Optimisations To speed up uMap homepage rendering on a large instance, the following index can be added as well (make sure you set the center to your default instance map center): - CREATE INDEX leaflet_storage_map_optim ON leaflet_storage_map (modified_at) WHERE ("leaflet_storage_map"."share_status" = 1 AND ST_Distance("leaflet_storage_map"."center", ST_GeomFromEWKT('SRID=4326;POINT(2 51)')) > 1000.0); + CREATE INDEX umap_map_optim ON umap_map (modified_at) WHERE ("umap_map"."share_status" = 1 AND ST_Distance("umap_map"."center", ST_GeomFromEWKT('SRID=4326;POINT(2 51)')) > 1000.0);