Topic ID: 9848
|
View previous topic :: View next topic |
| Author |
Message |
Nate
Chimpy Site Admin

 Gender:  Age: 25 Joined: 15 Nov 2004 Posts: 4986 Reviews: 169 Country: USA 748 Points
|
Posted: Sat Aug 26, 2006 7:21 pm Post subject: Speeding Up YWS |
|
|
I'm now in the process of tweaking the code to speed up the site. While most of the loading times are due to the fact that YWS is on a shared server, some of the loading times are due to a lot of queries being passed back and forth between the site and the database. To reduce all that, I'm caching a lot of those queries for any pages that take the server more than a second to generate.
For most of the pages on YWS, the server generates the page in .5 seconds. But it used to take the server up to 7 seconds to generate the front page. I managed to reduced that to just .3 seconds with caching. But what that means is that stuff will not be instantly updated on the front page. That is, it may take a while for something new (such as a new post) to show up on the front page. But I think that's a small price to pay for lower loading times.
In any case, I think I may move the site to a new hosting provider, such as hostway. The current provider is Yahoo Small Business, and I'm not happy with it. The server speed is inconsistent, I can't send out newsletters, and the server is unreliable. Hostway has a much better reputation, and I'm hoping that if I move the site over there, YWS would run a lot faster. |
_________________ Site Admin & Webmaster
www.youngwriterssociety.com/ywsblog
Do You YWS? If You Do YWS, Put "Got YWS?" In Your Sig!
Last edited by Nate on Sat Aug 26, 2006 7:46 pm; edited 1 time in total |
|
| Back to top |
|
|
|
Griffinkeeper
Storybook Godfather Epic Novelist

 Gender:  Age: 20 Joined: 02 Apr 2005 Posts: 3776 Reviews: 660 Country: USA 0 Points
|
Posted: Sat Aug 26, 2006 7:38 pm Post subject: |
|
|
| Good call! |
_________________ Grif is putting together a math usergroup. Join it here.
QED: The mathematical equivalent to 'Booyeah!" |
|
| Back to top |
|
Cassandra
Procrastinator Extrordinare Master of the Forum

 Gender:  Age: 16 Joined: 27 Apr 2006 Posts: 1420 Reviews: 161 Country: Los Estados Unidos 300 Points
|
Posted: Sat Aug 26, 2006 7:51 pm Post subject: |
|
|
Sounds good to me.  |
_________________ "All God does is watch us and kill us when we get boring. We must never, ever be boring."
-Chuck Palahniuk |
|
| Back to top |
|
Doctor Kitty
WUB Master of the Forum

 Gender:  Age: 17 Joined: 03 Aug 2005 Posts: 1201 Reviews: 142 Country: Herndonia 300 Points
|
Posted: Sat Aug 26, 2006 7:57 pm Post subject: |
|
|
Good idea.
Thankies. I've been having some trouble with slowness-ness-ness... |
_________________ "So the writer who breeds more words than he needs, is making a chore for the reader who reads."
Dr. Seuss |
|
| Back to top |
|
Nate
Chimpy Site Admin

 Gender:  Age: 25 Joined: 15 Nov 2004 Posts: 4986 Reviews: 169 Country: USA 748 Points
|
Posted: Sat Aug 26, 2006 8:04 pm Post subject: |
|
|
Right now, I'm really only testing the caching on the front page since that was the biggest lagger. If anyone is noticing long load times anywhere, with the exception of the My YWS page, let me know here.
To test to see if the front page is loading faster for you, load that one first then load the My YWS page. The two pages have the same code. The difference is that the front page is now cached while the My YWS page is not. For me, I've noticed a huge difference between the two. |
_________________ Site Admin & Webmaster
www.youngwriterssociety.com/ywsblog
Do You YWS? If You Do YWS, Put "Got YWS?" In Your Sig! |
|
| Back to top |
|
Poor Imp
Is Not Epic Novelist

 Gender:  Age: 20 Joined: 20 Feb 2006 Posts: 3773 Reviews: 416 Country: the roof 300 Points
|
Posted: Sat Aug 26, 2006 8:09 pm Post subject: |
|
|
Good idea, Nate...
First page loads in a split-second for me. My YWS takes a good five -eight seconds. !_! |
_________________ 'We experiment with ourselves in a way we would never permit ourselves to experiment with animals and, carried away by our curiosity, we cheerfully vivisect our souls.'-Nietszche |
|
| Back to top |
|
Skye
haute couture Speaker of the Forum

 Gender:  Age: 17 Joined: 29 Nov 2004 Posts: 580 Reviews: 145 Country: USA 300 Points
|
Posted: Sat Aug 26, 2006 8:14 pm Post subject: |
|
|
The homepage took less time than saying "one-one-thousand" while the MyYWS page took 12 seconds.  |
_________________ "A poet in love is best encouraged in both capacities or neither." ~ Jane Austen, Emma. |
|
| Back to top |
|
Cassandra
Procrastinator Extrordinare Master of the Forum

 Gender:  Age: 16 Joined: 27 Apr 2006 Posts: 1420 Reviews: 161 Country: Los Estados Unidos 300 Points
|
Posted: Sat Aug 26, 2006 8:16 pm Post subject: |
|
|
Wow. DEFINITELY a lot faster. Great work! |
_________________ "All God does is watch us and kill us when we get boring. We must never, ever be boring."
-Chuck Palahniuk |
|
| Back to top |
|
Snoink
Snuggly Writer of Legend

 Gender:  Age: 20 Joined: 02 Apr 2005 Posts: 8311 Reviews: 2091 Country: USA 3184 Points
|
Posted: Sat Aug 26, 2006 9:32 pm Post subject: |
|
|
Yup, it's DEFINITELY faster.
Except the chat. The chat is EXTRA scary today...
EDIT: But I think the cache is making the recent topics on the home pagestay the same from when I first came here today, and that's driving me crazy. O_o |
_________________ Leopluridon '08: He Will Show Us The Way! |
|
| Back to top |
|
Griffinkeeper
Storybook Godfather Epic Novelist

 Gender:  Age: 20 Joined: 02 Apr 2005 Posts: 3776 Reviews: 660 Country: USA 0 Points
|
Posted: Sat Aug 26, 2006 10:06 pm Post subject: |
|
|
| I'm experiencing the same problem. |
_________________ Grif is putting together a math usergroup. Join it here.
QED: The mathematical equivalent to 'Booyeah!" |
|
| Back to top |
|
Areida
Not-So-Official But Totally Essential Princess Ari Epic Novelist

 Gender:  Age: 18 Joined: 14 Feb 2005 Posts: 4799 Reviews: 697 Country: no, not really. I don't have a hick accent or anything. 300 Points
|
Posted: Sat Aug 26, 2006 10:38 pm Post subject: |
|
|
| The homepage has been really slow loading for me ever since YWS got back up, but now it's loading normally again. I haven't noticed any particularly slow pages, but I haven't used myYWS lately. |
_________________ Got YWS? |
|
| Back to top |
|
David Guinness
Speaker of the Forum

 Gender:  Age: 17 Joined: 16 Dec 2005 Posts: 662 Reviews: 114 Country: USA 300 Points
|
Posted: Sun Aug 27, 2006 12:50 am Post subject: |
|
|
The Recent Topics column hasn't changed in at least five hours, as Snoink mentioned. (Clearing my temp files didn't help, so it's definitely server-side-cache-related.)
Other than that, the caching is great. Even MyYWS loads faster than it used to, for whatever reason. |
_________________ David Guinness |
|
| Back to top |
|
Nate
Chimpy Site Admin

 Gender:  Age: 25 Joined: 15 Nov 2004 Posts: 4986 Reviews: 169 Country: USA 748 Points
|
Posted: Sun Aug 27, 2006 4:35 am Post subject: |
|
|
| Yep, I noticed the recent topics thing too. Unfortunately, it seems that the recent topics block is the cause for the slow loading times. Taking off the caching just for that increases the load time by six seconds, and sometimes more. I'm going to check to see tomorrow if there's something I can do to tweak the code for that. |
_________________ Site Admin & Webmaster
www.youngwriterssociety.com/ywsblog
Do You YWS? If You Do YWS, Put "Got YWS?" In Your Sig! |
|
| Back to top |
|
David Guinness
Speaker of the Forum

 Gender:  Age: 17 Joined: 16 Dec 2005 Posts: 662 Reviews: 114 Country: USA 300 Points
|
Posted: Sun Aug 27, 2006 4:51 am Post subject: |
|
|
Could you just place in that spot a link to a Recent Topics page (similar to the Posts Since Last Visit thread)?
Or possibly a Recent Topics popup window, like the PM notification one?
Or (and I realize it would probably be a real pain to code) a Recent Topics minimize/maximize box?
-Just some ideas. |
_________________ David Guinness |
|
| Back to top |
|
|
|
Nate
Chimpy Site Admin

 Gender:  Age: 25 Joined: 15 Nov 2004 Posts: 4986 Reviews: 169 Country: USA 748 Points
|
Posted: Sun Aug 27, 2006 5:02 am Post subject: |
|
|
| I could do one of those, and I was thinking about the first one you brought up especially, but I really like having the recent topics listed on the front page for easy viewing. But, on the other hand, it's very aggravating to wait 10, sometimes even 30 seconds for the site to load. |
_________________ Site Admin & Webmaster
www.youngwriterssociety.com/ywsblog
Do You YWS? If You Do YWS, Put "Got YWS?" In Your Sig! |
|
| Back to top |
|
|