From: Sarah Hoffmann Date: Tue, 18 Aug 2020 19:40:53 +0000 (+0200) Subject: add migration for new indxing schema X-Git-Tag: v3.6.0~89^2~1 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/984979d9bf448cf8dfab9be763c5e0ba6cf2f399 add migration for new indxing schema --- diff --git a/docs/admin/Migration.md b/docs/admin/Migration.md index 0400ed43..917d3785 100644 --- a/docs/admin/Migration.md +++ b/docs/admin/Migration.md @@ -8,6 +8,23 @@ SQL statements should be executed from the PostgreSQL commandline. Execute ## 3.5.0 -> master +### Change order during indexing + +When reindexing places during updates, there is now a different order used +which needs a different database index. Create it with the following SQL command: + +```sql +CREATE INDEX idx_placex_pendingsector_rank_address + ON placex USING BTREE (rank_address, geometry_sector) where indexed_status > 0; +``` + +You can then drop the old index with: + +```sql +DROP INDEX idx_placex_pendingsector +``` + + ### Switching to dotenv As part of the work changing the configuration format, the configuration for