Configuration to limit the number of layers loaded on start #122
Open
Description
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 seen locality
and localadmin
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:
- https://github.com/pelias/wof-admin-lookup/blob/452932cc692eb5d0cf723d0659c1a99d9da2ed47/index.js#L26-L29
- https://github.com/pelias/wof-admin-lookup/blob/d25718e004ce949cd3a3018fad7f13f27e3da086/src/localPipResolver.js#L14-L17
- https://github.com/pelias/wof-admin-lookup/blob/d25718e004ce949cd3a3018fad7f13f27e3da086/src/pip/index.js#L41-L44
I'm happy to implement this myself file 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.