]> git.openstreetmap.org Git - nominatim.git/commitdiff
Revert "increase search radius for named roads"
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 13 Feb 2013 23:40:58 +0000 (00:40 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 13 Feb 2013 23:40:58 +0000 (00:40 +0100)
This reverts commit c2d5303192c960b456b2d2ab4b6e14cead2042ac.
It causes serious performance problems in densely mapped areas.

sql/partition-functions.src.sql

index 6afbbdda15cc48b34150f5974e808a552249b5f4..0e26849d5e93d5ab964666a6e1d315d2eae57d3e 100644 (file)
@@ -124,7 +124,7 @@ BEGIN
           ST_Distance(centroid, point) as distance, null as isguess
           FROM search_name_-partition-
           WHERE name_vector @> ARRAY[isin_token]
-          AND ST_DWithin(centroid, point, 0.03)
+          AND ST_DWithin(centroid, point, 0.01) 
           AND search_rank between 22 and 27
       ORDER BY distance ASC limit 1
     LOOP