This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Nominatim search query is really slow on house numbers

2

Hello. I have imported North America from pbf file and all TIGER data 2012 for house numbers in the US.

When I do simple query like "q=17th" on my instance, I get results immedietely.

But when I do query for house number like "1250 14th Street" search hangs for many minutes, with running process: "postgres: nominatim nominatim_na [local] SELECT".

My slow query exactly looks like that:

http://nominatim.openstreetmap.org/search?bounded=1&viewbox=-105.58434900000003,40.225636,-104.67103400000002,39.456677&q=1250%2014th%20street&format=json&addressdetails=1

My settings:

13GB RAM on the machine

postgresql.conf:

autovacuum=off
shared_buffers =4GB
work_mem = 320MB
maintenance work mem = 256MB
effective cache size = 6GB

What could be the reason?

Regards,
Michael

asked 19 Aug '13, 10:06

emvu's gravatar image

emvu
31113
accept rate: 0%


One Answer:

2

This sounds like the indexes on the TIGER house number table are not properly used. Make sure that the location_property_tiger has its two indexes, one on place_id and one on parent_place_id/housenumber. If the indexes are there, it normally helps to run an ANALYSE on the table.

answered 22 Aug '13, 21:50

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

Source code available on GitHub .