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

Popups take long to show up #143

Open
nesnoj opened this issue May 8, 2024 · 3 comments
Open

Popups take long to show up #143

nesnoj opened this issue May 8, 2024 · 3 comments
Assignees
Labels
bug 🐞 Something isn't working

Comments

@nesnoj
Copy link
Contributor

nesnoj commented May 8, 2024

@nesnoj nesnoj added the bug 🐞 Something isn't working label May 8, 2024
@henhuy
Copy link
Contributor

henhuy commented May 14, 2024

We could try to increase gunicorn workers and/or threads.
But this is more or less try and error - so server would be down/up several times while testing
On my machine, popups are fast (500ms max)

@nesnoj
Copy link
Contributor Author

nesnoj commented May 14, 2024

Now that you fixed #139 the point layers take about 2s 👍 .
The slowest ones are the FF-PV layers: When MVTs are completely loaded, they take 2s as well, otherwise up to 10s (especially if many layers are active at the same time).

BTW, when moving the map view, loading MVT takes quite long due to the large amount of data. As we don't use LODs I could try to reduce feature count and accuracy. Or we could add a spinner..

@henhuy
Copy link
Contributor

henhuy commented May 23, 2024

Unfortunately, I don't see how to improve speed of popups easily, as:

  • view logic cannot be improved (is already fast IMO)
  • requests to server cannot be prioritized (i.e. handle popup requests before MVT requests) - this is not possible in django
  • precalculating popups and store them in storage client-side would be way too much overhead

Other ideas?
Maybe we could give feedback if popup is loading at least, so that user does not click multiple times...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants