]> git.openstreetmap.org Git - nominatim.git/commitdiff
add migration for new indxing schema
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 18 Aug 2020 19:40:53 +0000 (21:40 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 18 Aug 2020 19:40:53 +0000 (21:40 +0200)
docs/admin/Migration.md

index 0400ed43aaf2e720a5ebefb4ab60dbf56e267706..917d37859d1a7e7bdb0a7ee142343df988536b92 100644 (file)
@@ -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