mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
modifiers to encourage use of indices
This commit is contained in:
@@ -1573,7 +1573,7 @@ BEGIN
|
||||
make_standard_name(name->'name') = make_standard_name(NEW.name->'name')
|
||||
AND placex.rank_search = NEW.rank_search
|
||||
AND placex.place_id != NEW.place_id
|
||||
AND osm_type = 'N'
|
||||
AND placex.osm_type = 'N' AND placex.rank_search < 26
|
||||
AND st_contains(NEW.geometry, placex.geometry)
|
||||
LOOP
|
||||
|
||||
@@ -2782,4 +2782,4 @@ EXCEPTION
|
||||
WHEN others THEN return null;
|
||||
END;
|
||||
$$
|
||||
LANGUAGE plpgsql;
|
||||
LANGUAGE plpgsql IMMUTABLE;
|
||||
|
||||
Reference in New Issue
Block a user