vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Query Count On Various Pages (https://vborg.vbsupport.ru/showthread.php?t=43565)

Dean C 09-15-2002 09:43 AM

Query Count On Various Pages
 
I need an expert opinion on whether i have too many queries per page... here they are... please state wich pages have too may queries if you would please:

index.php: 30 queries

register.php: 11 queries

usercp.php: 23 queries

register.php: 11 queries

private.php: 11 queries

showthread.php: 27 queries

newthread.php: 12 queries

newreply.php: 20 queries

- miSt

N9ne 09-15-2002 07:10 PM

looks okay to me.

NTLDR 09-15-2002 08:13 PM

showthread will vary depending on how many posts ect, index at at the top margin. In general try to keep the number of queries bellow 30. If you site doesn't have large volumes of traffic then going over this limit a little won't have that much of an effect on the server.

NexDog 09-16-2002 01:05 AM

How do I determine how many queries I'm producing without installing the microstats hack?

Dean C 09-16-2002 05:59 PM

there's a line of code i noticed the other day in functions.php i think... its commented out... damn im gonna release this... pathetic excuse for my first hack lol

- miSt

NTLDR 09-16-2002 06:30 PM

Quote:

Originally posted by NexDog
How do I determine how many queries I'm producing without installing the microstats hack?
You need to enable showqueries and add showqueries=1 to the end of the URL, or with older versions add explain=1

Erwin 09-16-2002 10:42 PM

Quote:

Originally posted by NTLDR


You need to enable showqueries and add showqueries=1 to the end of the URL, or with older versions add explain=1

Turn debug mode to ON first, otherwise from 2.2.4 up showqueries won't work because of the security risk.

And @ the first poster - those numbers look good.

Dean C 09-17-2002 03:30 PM

turning debug on is a huge security risk i think or is it the other way round?

- miSt

Xenon 09-17-2002 03:34 PM

enabled debug mode is a security risk, you should turn it to off after you've done what you want ;)

btw: you should always be able to add $query_count into your footertable which should show you the ammount of querys

NTLDR 09-17-2002 03:46 PM

Quote:

Originally posted by Xenon
enabled debug mode is a security risk, you should turn it to off after you've done what you want ;)
I know having debug on is a security risk, but would you mind telling us why? I've allways had it switched off anyway but would like to know what risks exisit by having it switched on.


All times are GMT. The time now is 07:11 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.01050 seconds
  • Memory Usage 1,727KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete