Skip to content
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

[Feature request] Add user searches to cache #11

Open
tycrek opened this issue Jan 22, 2020 · 3 comments
Open

[Feature request] Add user searches to cache #11

tycrek opened this issue Jan 22, 2020 · 3 comments

Comments

@tycrek
Copy link

tycrek commented Jan 22, 2020

First off, I'm loving this project.

I'm wondering how hard it would be to dynamically update the cache with user searches. For example, I keep searching my local town to show the project to people. It only takes a few seconds, but it would be nice if it could update the cache with what the client is able to load. Although I totally get if this is difficult because of the huge amounts of data some regions have.

Just an idea!

@anvaka
Copy link
Owner

anvaka commented Jan 24, 2020

Thank you for the idea! At the moment we use github as our CDN, and there is no other intermediate server that could cache the results or even collect analytics in background, so that we could support dynamic caching.

But I noticed overpass being slow periodically and it is a frustrating experience. If you want to add your city to the cache - please let me know its name and I'll add it.

This could be semi-automated via pull-requests model, but prior to that I'd probably need to polish/document this caching repository https://github.com/anvaka/index-large-cities

@tycrek
Copy link
Author

tycrek commented Jan 26, 2020

I like the pull request idea. If you added a function to the map site where you could export the loaded data in whatever format the cache uses, that data could be used as a template for the pull request.

@pax
Copy link

pax commented Jan 28, 2020

or have a log of the searched cities, add to cache after they pass a certain popularity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants