vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   I have too many queries! (apparently) (https://vborg.vbsupport.ru/showthread.php?t=35937)

Tim Wheatley 03-10-2002 07:38 AM

I have too many queries! (apparently)
 
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 :)

TECK 03-10-2002 07:53 AM

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.

Tim Wheatley 03-10-2002 07:58 AM

I don't get negative all the time, it's actually quite a coincidence to see that many in a row...

TECK 03-10-2002 07:59 AM

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.

Tim Wheatley 03-10-2002 08:04 AM

lol *realisation of dumbness* I guess you're right :)

Admin 03-10-2002 10:17 AM

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!

Tim Wheatley 03-16-2002 01:48 PM

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.

Tim Wheatley 03-18-2002 05:35 AM

This is going really well. :)

The board FLIES now. :)


All times are GMT. The time now is 11:47 AM.

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.00953 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete