From 3b23144ae68b27c643f40fd186b40bf3c8a900c3 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 11 Oct 2020 10:40:23 +0200 Subject: [PATCH] docs: migration to new wikipedia needs new index Fixes #1998. --- docs/admin/Migration.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/admin/Migration.md b/docs/admin/Migration.md index b731c37c..fb766ba6 100644 --- a/docs/admin/Migration.md +++ b/docs/admin/Migration.md @@ -53,6 +53,12 @@ follows: * download the new Wikipedia tables as described in the import section * reimport the tables: `./utils/setup.php --import-wikipedia-articles` * update the functions: `./utils/setup.php --create-functions --enable-diff-updates` + * create a new lookup index: +``` +CREATE INDEX idx_placex_wikidata on placex +USING BTREE ((extratags -> 'wikidata')) +WHERE extratags ? 'wikidata' and class = 'place' and osm_type = 'N' and rank_search < 26 +``` * compute importance: `./utils/update.php --recompute-importance` The last step takes about 10 hours on the full planet. -- 2.39.5