Stepmania Online

Join the Online Revolution
It is currently Tue Jan 17, 2017 5:11 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Mar 27, 2013 11:43 pm 
Offline
Site Admin

Joined: Sun Sep 16, 2012 1:12 pm
Posts: 156
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.


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 27, 2013 11:47 pm 
Offline
User avatar

Joined: Tue Oct 16, 2012 12:57 pm
Posts: 251
Location: Carnegie Mellon University
The download page load time went down for. About 30 seconds to 1 second, nice job.


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 27, 2013 11:51 pm 
Offline
Site Admin

Joined: Sun Sep 16, 2012 1:12 pm
Posts: 156
@@ 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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group