-
Notifications
You must be signed in to change notification settings - Fork 36
Optimize the events map or find another approach for it #444
Comments
Both options are valuable and should be implemented. What is surprising is Then we need also to think at event mapping and approval. Those Finally, I wonder why the events.codeweek.eu site is still so slow, even 2016-10-12 23:25 GMT+02:00 Dimitar Dimitrov [email protected]:
|
I've temporary disabled the map in 5041a41 as it's too slow and practically incapacitates the site.
There are over 6000 events for this year's edition and they load on each homepage hit. When the homepage is loaded, a separate asynchronous (AJAX) request is made to the server to fetch a list of all the events using this URL: http://events.codeweek.eu/api/event/list/?format=json. It returns 6000+ records along with their ID, coordinates, title, URL name, short description and image URL. That’s a lot of data. It’s over 2 MB of text, for just that request. It’s cached in general, but the server seems to be unable to even build the cache. I managed to get it loading only when I allowed access only for my IP to the server. Then it was slow at first (~5-7s to load the homepage and then another 10-12s to load the list of events), then after a few requests it managed to cache the results and it became faster (loading the page in matter of a few seconds total).
The concept here needs to change. I can think of the following quickish workarounds currently:
I think option 2 is easier to implement. Both options would preserve most of the existing functionality.
Optimizing the map is not enough, though, more parts of the site need optimizations as well.
The text was updated successfully, but these errors were encountered: