FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Slow to start a new thread, replies are fast
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Slow to start a new thread, replies are fast [message #29619] Wed, 04 January 2006 06:08 Go to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Posting messages on my site is becoming very slow lately. What can be done to diagnose the problem?

For example, I just posted a message - it took 20 seconds to complete. However, reported time is low - "Total time taken to generate the page: 0.02517 seconds". A reply to the same message wil go through in less than 1 second!

Strange thing is that the system's load level is low - +- 0.5. Also, all other operations on the forum is relatively fast.

Best regards.

Frank
Re: Slow to start a new thread, replies are fast [message #29625 is a reply to message #29619] Wed, 04 January 2006 20:36 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There have been optimizations made to thread creation process in the 2.7.3 series and on my test server this process is extremely fast. In fact making a reply takes slightly longer then topic creation now. Both however are way faster then they were before.

FUDforum Core Developer
Re: Slow to start a new thread, replies are fast [message #29627 is a reply to message #29625] Wed, 04 January 2006 21:18 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Thank you for the reply. A couple of questions if you do not mind:

1) I'm already running on 2.7.3. Will upgrading to 2.7.4 (when it's available) make the posting of new threads faster (or is this already in 2.7.3)?

2) What is measured with the "Total time taken to generate the page:" footer message?

3) How is it possible that an operation that took 20 seconds can be reported as 0.02517 seconds? Can this be database wait time, network latency, or some other type of wait event?

Best regards.

Frank
Re: Slow to start a new thread, replies are fast [message #29628 is a reply to message #29627] Wed, 04 January 2006 21:27 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
2.7.3 already has this optimization. Adding a new topic is just an insert query to the end of the topic list. Very quick and simple operation, unless you have some database issues there is no way for it to take 20 seconds to perform.

The timer measures the time from the moment PHP scripts started to run to the moment when the footer of the page was generated. This means that the timing of all MySQL queries involved would be included.

However, when you post a message the page redirects you to the topic list, so you don't see how long it took to post a new message.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: fud_sql_error_handler() not defined for FUDAPI calls
Next Topic: IE cannot display searched thread
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 09:08:49 GMT 2024

Total time taken to generate the page: 0.02058 seconds