[openstreetmap/openstreetmap-website] Integrate the high-performance GPX importer (#1852)
Andy Allan
notifications at github.com
Fri Oct 5 16:19:33 UTC 2018
> Assuming that an import takes less than 5 seconds, we could as well do everything in a synchronous way.
I don't think this is a good idea. If a group of people upload a burst of gpx files in parallel (e.g. 1000 files) and each takes 5 seconds of CPU time, then that can tie up all the threads on the servers for a while. We already have a system to prevent people from having too many queued for processing. Best to keep the queue, so that they can be processed in the background, even if there's a spike of activity.
With proper integration into the site, we can show the user the number of their uploads that are pending, display a notification on the site when they are done, etc. I'm just not in favour of doing anything synchronously that could be done in the background.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1852#issuecomment-427421189
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20181005/d5041b0d/attachment.html>
More information about the rails-dev
mailing list