Site Speed Optimizations.

News about StepMania Online.
houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm

Site Speed Optimizations.

Postby houkouonchi » Wed Mar 27, 2013 11:43 pm

Site Speed Optimizations

I noticed as the DB grew that the site was performing quite a bit worse and MySQL load getting fairly high on the server. I went ahead and looked through the mysql slow logs to find some of the queries that were slow and and were examining a huge number of rows (sometimes upwards of a million) and added several indexes to several columns in several tables.

From my testing it looks like this sped up the site significantly. Let me know if you guys noticed the improvement by commenting.

User avatar
@@
Posts: 252
Joined: Tue Oct 16, 2012 12:57 pm
Location: Carnegie Mellon University
Contact:

Re: Site Speed Optimizations.

Postby @@ » Wed Mar 27, 2013 11:47 pm

The download page load time went down for. About 30 seconds to 1 second, nice job.

houkouonchi
Site Admin
Posts: 156
Joined: Sun Sep 16, 2012 1:12 pm

Re: Site Speed Optimizations.

Postby houkouonchi » Wed Mar 27, 2013 11:51 pm

@@ wrote:The download page load time went down for. About 30 seconds to 1 second, nice job.


Actually that doesn't even use MySQL. its likely due some other stuff I did which cleared up a bunch of disk cache.

That directory has a lot of file-system metadata due to the large number of files in it. I can try setting something up so that stays in cache so it can stay fast.


Return to “StepMania Online News”

Who is online

Users browsing this forum: No registered users and 1 guest