codeeu / coding-events

A Django app for adding EU Code Week events and showing them on a map.
http://events.codeweek.eu
MIT License
17 stars 36 forks source link

Analyze the site for slow paths and optimize them #445

Open mitio opened 7 years ago

mitio commented 7 years ago

Under a bit more traffic and with a bit more data, the events website is practically unusable and it's constantly "loading". The codebase has some very suboptimal parts and they need to be hunted down and optimized.

yallsop commented 7 years ago

The last time I added an event, I could still see the ones from previous years too.. Overloaded maybe?

On 12 Oct 2016, at 22:28, Dimitar Dimitrov notifications@github.com<mailto:notifications@github.com> wrote:

Under a bit more traffic and with a bit more data, the events website is practically unusable and it's constantly "loading". The codebase has some very suboptimal parts and they need to be hunted down and optimized.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/codeeu/coding-events/issues/445, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALq66_DzYf1Qf6FXiNhUdm_4er7Hlk-4ks5qzVEJgaJpZM4KVPaE.

mitio commented 7 years ago

I think I've optimized the slowest part on the homepage in 87d33bf8 and that made a big difference. The site seems to work fine now. I guess there's room for a lot more optimizations, but for now we should be good.

alessandrobogliolo commented 7 years ago

Great job Dimitar! Thank you very much for your help! I did some tests and unfortunately the interface is still so slow that event listing and insertion are practically unusable. Having disabled the map, optimized the code, and upgraded the server, this makes mi think that there is something wrong with the service that Digital Ocean hes offered since yesterady's violation. What do you think? I don't wee any reason for today's performance to be so slow, considering that the site was working properly until two days ago with much lower resources

2016-10-13 0:50 GMT+02:00 Dimitar Dimitrov notifications@github.com:

I think I've optimized the slowest part on the homepage in 87d33bf https://github.com/codeeu/coding-events/commit/87d33bf8b1b74d485888d706b4707b05750b0b57 and that made a big difference. The site seems to work fine now. I guess there's room for a lot more optimizations, but for now we should be good.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/codeeu/coding-events/issues/445#issuecomment-253362282, or mute the thread https://github.com/notifications/unsubscribe-auth/AIPCH7IGtGsSD8pym0S7o6mNKfiO0Hs9ks5qzWQ2gaJpZM4KVPaE .

mitio commented 7 years ago

@alessandrobogliolo can you give me a few URLs which are too slow?

I know the site is still slow as it was not coded with volume and speed in mind so there's a lot more to be done in that regard. But since we don't have the capacity to, maybe we can at least patch here and there if it's too slow.