Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
I have too many queries! (apparently) Details »»
I have too many queries! (apparently)
Version: , by Tim Wheatley Tim Wheatley is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-10-2002 Last Update: Never Installs: 0
 
No support by the author.

Hi, here's how many queries I have:

On my biggest forumdisplay:
Page generated in 0.0892940 (-1,617.22% PHP - 1,717.22% MySQL) seconds with 61 queries.
PHP version 4.1.2 (Debug mode) with GZIP compression library disabled.

On a large thread with an attachment in every post:
Page generated in 0.3617310 (-1,224.86% PHP - 1,324.86% MySQL) seconds with 111 queries.
PHP version 4.1.2 (Debug mode) with GZIP compression library disabled.

The forum mainpage (index):
Page generated in 0.3371010 (-1,501.54% PHP - 1,601.54% MySQL) seconds with 114 queries.
PHP version 4.1.2 (Debug mode) with GZIP compression library disabled.

Where do I start looking to fix this stuff? I am a PHP novice

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-10-2002, 07:53 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm ur the 2nd guy who gets negative signs on my hack... did you follow exacly all the instructions? after all, if you installed wrong the hack, the queries might be displayed wrong also, not only the PHP usage.

make sure you install version 1.3 and clear all your cookies before you download the attachment.

regards,
nakkid.
Reply With Quote
  #3  
Old 03-10-2002, 07:58 AM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't get negative all the time, it's actually quite a coincidence to see that many in a row...
Reply With Quote
  #4  
Old 03-10-2002, 07:59 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Page generated in 0.3719050 (-1,254.32% PHP - 1,354.32% MySQL) seconds with 43 queries.
a page like yours built in 0.3 sec? i doubt it. please review your hack install.

btw, i never get a negative.
Reply With Quote
  #5  
Old 03-10-2002, 08:04 AM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol *realisation of dumbness* I guess you're right
Reply With Quote
  #6  
Old 03-10-2002, 10:17 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stick &explain= to the end of the URL, then look at the bottom. The REAL number is there. I hope for you it's not too large!
Reply With Quote
  #7  
Old 03-16-2002, 01:48 PM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is, VERY large...

So here's what I'm gonna do (I've done this with my test board and it was 'ok' I guess...

Simply delete manually all the php files - as nothing is stored in them which affects the boards content.

Then install 2.2.4 fresh (minus of course any template or edited php files), then install my old hacks (which I can find in my profile here) one by one, having checked mysql queries after each to see which one is the problem.

I've already backed up my important templates which I'll need to bring back. Everything else is already backed up in the database.
Reply With Quote
  #8  
Old 03-18-2002, 05:35 AM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is going really well.

The board FLIES now.
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 11:09 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.04277 seconds
  • Memory Usage 2,264KB
  • Queries Executed 21 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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