Victor's Blog

Live as if you were to die tomorrow. Learn as if you were to live forever


Improve the performance in Godaddy hosting

I recently upgraded my hosting plan from shared hosting to 4GH grid hosting in Godaddy. It was a really bad idea. The 4GH performance is insanely bad. It takes about 30 seconds to load my homepage. I googled the Godaddy performance. It seems a lot of people have the same issue and Godaddy seems don't care about resolve this issue at all. So I have to do some tweaks to ensure my site's performance is reasonable. Here is two things I did which helped the most:

1. Precompile the site. This is very very important.  According this post, Godaddy puts about 3900 sites in one server. That means you have to compete resource with them. Compiling you website dynamically is not a good idea anymore. Precompiling the website will make you lose some of the flexibility. But it makes sure you don't have to compete resource to compile the website anymore. 

2. Only display one entry per page. It makes sure you site only load the small amount of the data every time. You can set that in your blog setting.

After these two steps, I reduced the loading time from 30 seconds to about 5 seconds. Good luck to you guys.