Go Back   vb.org Archive > Community Central > Community Lounge
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2002, 12:29 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Slow forums

This is what I have when I load the showthread.php with 25 posts per page.

Page generated in 19.40027702 seconds (84.14% PHP - 15.86% MySQL) with 54 queries.
[Debug Mode OFF] [PHP v4.1.2] [GZIP disabled] [Server Load: 5.66 ? 5.29 : 4.97]

Hacks I installed that are on the showthread page:
-store hack (glowing username and points)
-a custom title hack (not here in the database)
-stars
-local time
-what style are we using?
-quick reply
-multiquote

I also included posts per day and member ID. I don't know if I missed anything.

Any suggestions on making it faster but not by removing hacks? (It's probably not possible but asking anyway)
Reply With Quote
  #2  
Old 09-22-2002, 12:32 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Probably the store hack.
Reply With Quote
  #3  
Old 09-22-2002, 12:37 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That suck as it's one of the coolest hacks.

Here is the topic I tested it one btw incase I missed something: http://www.forums.thegaminguniverse....?threadid=1307

I'll look on other forums where the store hack is installed in see how fast it loads.
Reply With Quote
  #4  
Old 09-22-2002, 12:39 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

take a look at your admin/functions.php

function getpostbit

perhaps you have a query in this function.
because of the repeated use of this function in showthread you shoul try to put the query outside of the loop...
Reply With Quote
  #5  
Old 09-22-2002, 12:59 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah there was 1 query that made the glowing usernames. I changed the query to just a $storeextraglow=$post[username] causing the glow not to work but reduced 1 query per post. The results however where quite unexpected:

Page generated in 23.34848297 seconds (90.71% PHP - 9.29% MySQL) with 28 queries.
[Debug Mode OFF] [PHP v4.1.2] [GZIP disabled] [Server Load: 6.22 » 6.08 : 5.60]

Seeing that the PHP % is quite high (compared to this forum), my guess is the code is quite unefficient. That or my host sucks. Any suggestions?
Reply With Quote
  #6  
Old 09-22-2002, 01:03 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well is your MySQL-Server the same as your PHP Server or are it two servers?

if it's the same server then i'd say the code is very unefficient, if not it could be your host...
Reply With Quote
  #7  
Old 09-22-2002, 01:07 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No I don't think so. The database uses space from my main site. Maybe I should ask my host.
Reply With Quote
  #8  
Old 09-22-2002, 01:09 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gee, I added the glow back and now it's:

Page generated in 13.95904005 seconds (61.41% PHP - 38.59% MySQL) with 54 queries.
[Debug Mode OFF] [PHP v4.1.2] [GZIP disabled] [Server Load: 4.27 » 4.68 : 5.07]

??? It must be the host.
Reply With Quote
  #9  
Old 09-22-2002, 01:28 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

we'll just looked at your site and it was very slow, seems like the host isn't very fast..

but of course optimizing code is always a good idea

btw. nice color style
Reply With Quote
  #10  
Old 09-22-2002, 01:31 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah it is most certainly the host as on an other site I admin that has the same hacks it does load faster.

And thanks.
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 08:48 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.03913 seconds
  • Memory Usage 2,246KB
  • 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
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete