From 637c5c2936a54e207a540ef0444b96a2fc0c1a80 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 16 Dec 2017 16:13:39 +0100 Subject: [PATCH] add documentation for new word count compute --- docs/Import-and-Update.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/Import-and-Update.md b/docs/Import-and-Update.md index fe95e865..ec451e8f 100644 --- a/docs/Import-and-Update.md +++ b/docs/Import-and-Update.md @@ -68,6 +68,17 @@ import, for excerpts you can use less. Adapt to your available RAM to avoid swapping, never give more than 2/3 of RAM to osm2pgsql. +Computing word frequency for search terms can improve the performance of +forward geocoding in particular under high load as it helps Postgres' query +planner to make the right decisions. To recompute word counts run: + + ./utils/update.php --recompute-word-counts + +This will take a couple of hours for a full planet installation. You can +also defer that step to a later point in time when you realise that +performance becomes an issue. Just make sure that updates are stopped before +running this function. + Loading additional datasets --------------------------- -- 2.39.5