Stop The Scrolling Header | Enable the Scrolling Header

Firefox 3

News:  

Let The Games Begin: The Writing Olympics!

Event #5 Results!
Username:    Password:      Log me on automatically each visit    
Lesser of Two Evils
Lesser of Two Evils

by sworddance in Other Fiction
Young Writers Society Forum Index -> The Information Desk » Information Desk Archive

This thread was created on August 26, 2006
Post new topic   Reply to topic
Digg It Del.icio.us


Speeding Up YWS Goto page 1, 2  Next
Topic ID: 9848
View previous topic :: View next topic  
Author Message
Nate   View This User's Portfolio
Chimpy
Site Admin

169
Gender: Gender:Male
Age: 25
Joined: 15 Nov 2004
Posts: 4986
Reviews: 169
Country: USA
748 Points

PostPosted: Sat Aug 26, 2006 7:21 pm    Post subject: Speeding Up YWS Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Griffinkeeper   View This User's Portfolio
Storybook Godfather
Epic Novelist

660
Gender: Gender:Male
Age: 20
Joined: 02 Apr 2005
Posts: 3776
Reviews: 660
Country: USA
0 Points

PostPosted: Sat Aug 26, 2006 7:38 pm    Post subject: Reply with quote

Good call!

_________________
Grif is putting together a math usergroup. Join it here.

QED: The mathematical equivalent to 'Booyeah!"
Back to top
View user's profile Send private message
Cassandra   View This User's Portfolio
Procrastinator Extrordinare
Master of the Forum

161
Gender: Gender:Female
Age: 16
Joined: 27 Apr 2006
Posts: 1420
Reviews: 161
Country: Los Estados Unidos
300 Points

PostPosted: Sat Aug 26, 2006 7:51 pm    Post subject: Reply with quote

Sounds good to me. Very Happy

_________________
"All God does is watch us and kill us when we get boring. We must never, ever be boring."
-Chuck Palahniuk
Back to top
View user's profile Send private message Visit poster's website
Doctor Kitty   View This User's Portfolio
WUB
Master of the Forum

142
Gender: Gender:Male
Age: 17
Joined: 03 Aug 2005
Posts: 1201
Reviews: 142
Country: Herndonia
300 Points

PostPosted: Sat Aug 26, 2006 7:57 pm    Post subject: Reply with quote

Good idea. Smile

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
View user's profile Send private message
Nate   View This User's Portfolio
Chimpy
Site Admin

169
Gender: Gender:Male
Age: 25
Joined: 15 Nov 2004
Posts: 4986
Reviews: 169
Country: USA
748 Points

PostPosted: Sat Aug 26, 2006 8:04 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Poor Imp   View This User's Portfolio
Is Not
Epic Novelist

416
Gender: Gender:Female
Age: 20
Joined: 20 Feb 2006
Posts: 3773
Reviews: 416
Country: the roof
300 Points

PostPosted: Sat Aug 26, 2006 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Skye   View This User's Portfolio
haute couture
Speaker of the Forum

145
Gender: Gender:Female
Age: 17
Joined: 29 Nov 2004
Posts: 580
Reviews: 145
Country: USA
300 Points

PostPosted: Sat Aug 26, 2006 8:14 pm    Post subject: Reply with quote

The homepage took less time than saying "one-one-thousand" while the MyYWS page took 12 seconds. Shocked

_________________
"A poet in love is best encouraged in both capacities or neither." ~ Jane Austen, Emma.
Back to top
View user's profile Send private message Visit poster's website AIM Address
Cassandra   View This User's Portfolio
Procrastinator Extrordinare
Master of the Forum

161
Gender: Gender:Female
Age: 16
Joined: 27 Apr 2006
Posts: 1420
Reviews: 161
Country: Los Estados Unidos
300 Points

PostPosted: Sat Aug 26, 2006 8:16 pm    Post subject: Reply with quote

Wow. Shocked 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
View user's profile Send private message Visit poster's website
Snoink   View This User's Portfolio
Snuggly
Writer of Legend

2091
Gender: Gender:Female
Age: 20
Joined: 02 Apr 2005
Posts: 8311
Reviews: 2091
Country: USA
3184 Points

PostPosted: Sat Aug 26, 2006 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Griffinkeeper   View This User's Portfolio
Storybook Godfather
Epic Novelist

660
Gender: Gender:Male
Age: 20
Joined: 02 Apr 2005
Posts: 3776
Reviews: 660
Country: USA
0 Points

PostPosted: Sat Aug 26, 2006 10:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Areida   View This User's Portfolio
Not-So-Official But Totally Essential Princess Ari
Epic Novelist

697
Gender: Gender:Female
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

PostPosted: Sat Aug 26, 2006 10:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
David Guinness   View This User's Portfolio
Speaker of the Forum

114
Gender: Gender:Male
Age: 17
Joined: 16 Dec 2005
Posts: 662
Reviews: 114
Country: USA
300 Points

PostPosted: Sun Aug 27, 2006 12:50 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Nate   View This User's Portfolio
Chimpy
Site Admin

169
Gender: Gender:Male
Age: 25
Joined: 15 Nov 2004
Posts: 4986
Reviews: 169
Country: USA
748 Points

PostPosted: Sun Aug 27, 2006 4:35 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
David Guinness   View This User's Portfolio
Speaker of the Forum

114
Gender: Gender:Male
Age: 17
Joined: 16 Dec 2005
Posts: 662
Reviews: 114
Country: USA
300 Points

PostPosted: Sun Aug 27, 2006 4:51 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Nate   View This User's Portfolio
Chimpy
Site Admin

169
Gender: Gender:Male
Age: 25
Joined: 15 Nov 2004
Posts: 4986
Reviews: 169
Country: USA
748 Points

PostPosted: Sun Aug 27, 2006 5:02 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
This thread was created on August 26, 2006
Post new topic   Reply to topic
   Young Writers Society Forum Index -> The Information Desk » Information Desk Archive All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
This thread was created on August 26, 2006

Graphics By Bobo | YWS Sword & Shield Logo by Bobo
Bartemius says, The fellow who thinks he knows it all is especially annoying to those of us who do. - Harold Coffin
Contact | Memberlist | Copyright Policy | YWS Store | Site Map
Facebook |  Goodreads |  Live Journal |  MySpace |  Wikipedia

© 2004 - 2008 The Young Writers Society