New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query Optimisation Question #224
Comments
|
Hi Christoph, let's take a look at the dev instance first: here your query just takes 12 seconds, if the data is already in the buffer cache. The response time will be a bit higher in case of additional hard disk accesses. overpass turbo link for testing: http://overpass-turbo.eu/s/aus So, from a query point of view, I would say you're fine. Unfortunately, the situation is very different on both production machines:
My recommendation is to discuss this topic with Roland via email. |
|
Thanks, i just switched my "productive" osmcount for that case to your Development Instance, please inform me, when this results in problems. |
The fact that the "destination" restriction is hard unfortenately Basically, there are three things that could be checked for first:
Apparently, all three things could be large or small. As the original I think Daniel has turned that around which would fit much better to |
|
@drolbr : well, the branch running on api_mmd endpoint doesn't include any changes to the evaluation of filters, so this part should really be identical to main instance. Also, I used Christoph's query as is. I think the difference in response time only depends on two changes:
There's an additional patch for attic scenarios in place, which avoids collecting unnecessary elements (#174). It is primarily targeting large memory consumption, but could also have some runtime implications (didn't measure this part). My branch also runs on PCRE instead of Posix Regex library, but I don't think this has any relevance for the speed up we see here. |
Hi,
for the current "weekly task" GuidePost i would like to count the tagging of destination:* on ways of type path, track, cycleways and footways.
the query is simple:
(Key and Value are changes for every overpass run to something like de:amtlicher_gemeindeschluessel and 16. current actual results can be found here. http://thefive.sabic.uberspace.de/table/GuidePost_Path.html)
But it takes very long (for no results).
What is the way to optimize it ?
Throwing out the regex and do an or over all possibilities ? As mueschel has suggested 8 destination tags, see: http://blog.openstreetmap.de/blog/2015/07/ferienaufgabe-wanderwegweiser/, or in english: http://www.weeklyosm.eu/archives/4504 , there are 8*4 compinations i have to put in the "or".
The "destination" restriction is very hard (0 results yet), is there somewhat like an index in overpass, that is not used here ?
Christoph
The text was updated successfully, but these errors were encountered: