Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2003, 09:04 AM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Template & Database Problem - Please Read! Desperate!

Hey campers.

I really need a professional's help on this one.

While working on my new website tonight using vb 2.3.0 (which contains 2 skins at the moment, 1 default and one brand new one launching soon) all of a sudden I am getting MAJOR rendering delays... The queries count is perfectly fine, it's just the long delays.. I haven't installed any new hacks in the past 24 hours, and there should be no differences in load time...

Here's an example:
Generated in 6.13347697 seconds (99.54% PHP - 0.46% MySQL) with 19 queries. (forumhome used as example).

Sometimes it's as low as 5ish, sometimes it goes to 14 or even 30!

Something must have botched somehow in the database, this has never happened to me before. I have been editing the templates feverishly on a non-live account on my dedicated server (using php 4.3.2, and mysql 3.23.57 btw) for a week and all of a sudden BOOM!

The real kicker, is that if I go into UserCP, select the 'default' template, the renderings are way under 1 second! How do I fix and repair this? All code inside of the templates is flawless.

I tossed debug on, and I get this one large delay (but only when I have this SPECIFIC template selected!):

Query: SELECT * FROM usergroup WHERE usergroupid=6
Time before: 16.053761959076
Time after: 16.054703950882

table type possible_keys key key_len ref rows Extra
usergroup const PRIMARY PRIMARY 2 const 1


We're opening in the next few days and this was certainly the last thing I was expecting...

Thank you for ANY help you can provide!

Regards,
-Jason
Reply With Quote
  #2  
Old 07-17-2003, 09:14 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Generated in 6.13347697 seconds (99.54% PHP - 0.46% MySQL)

that shows that it's not your db, but the php part which takes so much time.

maybe you have a loop in your phpinclude template?
Reply With Quote
  #3  
Old 07-17-2003, 09:34 AM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I copied the simple phpinclude from the speedy and working default template and it seems to be fixed! Now, to try to isolate exactly what piece of code there is slowing things down...

I only have two things in there, the template version of the front page avatar hack, and a call to the thumbincluder relating to Photopost. I'll report back.

You are my hero, Xenon!

[high]* Alien is NOT worthy!
[/high]

-Jason
Reply With Quote
  #4  
Old 07-18-2003, 08:31 PM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just coming back for an update.. It was having some sort of issue with the thumbnailincluder that works with Photopost. I'm going to figure out what that's all about.

Thanks again for your VERY prompt help!
-Jason
Reply With Quote
  #5  
Old 07-18-2003, 09:46 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03484 seconds
  • Memory Usage 2,197KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete