]> git.openstreetmap.org Git - nominatim.git/commit
increase splitting for large geometries
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 20 Aug 2020 14:37:33 +0000 (16:37 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 24 Sep 2020 09:52:17 +0000 (11:52 +0200)
commit777c70926a0976014f4438ca6eed1725add06a3b
tree43a66e36390813a78d14ba64f49f7d7138ee4837
parentb2886426b77a88e54e02c9192d90d0669525e50c
increase splitting for large geometries

When computing the address parts for a geometry, we need to do
a ST_Relates lookup in the location_area_large_* tables. This is
potentially very expensive for geometries with many vertices.
There is already a funtion for splitting large areas to reduce the
impact. This commit reduces the minimum area of a split, effectively
increasing the number of splits.

The effect on database size is minimal (around 3% increase), while
the indexing speed for streets increases by a good 60%.
sql/functions/utils.sql