From: Sarah Hoffmann Date: Sat, 16 Dec 2017 15:13:39 +0000 (+0100) Subject: add documentation for new word count compute X-Git-Tag: v3.1.0~16 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/637c5c2936a54e207a540ef0444b96a2fc0c1a80 add documentation for new word count compute --- 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 ---------------------------