-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Configuration to limit the number of layers loaded on start #122
Comments
Hi @CharlesG-Branch, we have been working on a new system which starts up instantly, would you be interested in BETA testing that? If you were to remove |
@missinglink I'd be happy to beta test it & I'm curious how that was accomplished (is there a runtime perf hit?) In my case I'm only deploying this service without the rest of the pelias stack as I only need the reverse geocoding component. And only the layers for counties and larger are important for my case & so I figured that locality would be safe to not load then as it's lower in the hierarchy https://github.com/whosonfirst/whosonfirst-placetypes — will not loading it impact the accuracy of things higher in the hierarchy? |
Well then you're going to love this...
There is a demo on port 3000 |
Try out these paths locally:
With the last of these being a 'reverse compatible' endpoint with this repo, although that's where the BETA comes in. |
The magic here is that the data is loaded in mmap mode so the linux filesystem cache provides an in-memory LRU cache for the 'hot pages', you don't need to configure anything but the more memory you have the moar faster it is, I can explain more if you find it useful. |
Wow, the startup time & demo page are incredible. Exposing the localization information is also extremely helpful. I did get some exceptions for the last two links:
I'll play around with it loading + using the full wof dataset later today. Limiting the placeids loaded (currently done with |
Looks like a bug thanks, easily fixed. |
More download options from our site https://geocode.earth/data |
If y'all would like commercial support we'd be happy to supply other data such as OSM and US CENSUS data for your business as seen in our demo https://spatial.demo.geocode.earth/explore/pip |
bug resolved in pelias/spatial#48 |
FWIW I came to this issue after having serious performance issues starting |
Use-cases
Starting up the pip-service can take an extremely long amount of time even when limiting what you want via
importPlace
. Sometimes certain layers aren't needed & it would be nice to disable the loading of them to improve that startup time. From what I've seenlocality
andlocaladmin
in particular take much longer then the other layers.Proposal
Pass in the layers you want loaded into here https://github.com/pelias/pip-service/blob/master/app.js#L95
As far as I can tell, this feature is already supported in wof-admin-lookup:
I'm happy to
implement this myselffile a PR, I just need to know what the procedure for updating the config is since it's shared across all projects for pelias + since this project currently doesn't load the config.The text was updated successfully, but these errors were encountered: