NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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%


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.

permanent link

answered 22 Aug '13, 21:50

lonvia's gravatar image

lonvia
6.2k25789
accept rate: 40%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×193
×33

question asked: 19 Aug '13, 10:06

question was seen: 4,097 times

last updated: 22 Aug '13, 21:50

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum