vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Too Many Queries? (https://vborg.vbsupport.ru/showthread.php?t=127944)

The Finman 09-30-2006 11:55 PM

Too Many Queries?
 
Somewhere in these forums I thought I read that more than 10 queries for vB was too much (I believe the thread had a poster with 100+), and that the average number of queries shouldn't really be over 3.

I have on average about 13 queries (vB 3.6), and I noticed that vBulletin.org is averaging about 16 queries.

So, given that I have read most people having 20-30 queries, 13 doesn't seem that much.

My question is, did I mistakenly read somewhere that there shouldn't be usually more than 3 queries, and if I did then is 13 reasonable?

Thanks in advance.:)

~Fin

SCRIPT3R 10-01-2006 12:03 AM

i wouldn't want 100 queries on a busy (100+ highly active users) forum, but anything less then 15 queries should me more then fine. of course it depends on what those queires are, but on average, i think you're ok.

Adrian Schneider 10-01-2006 12:08 AM

It depends on the page, and on the queries.

If you have a ridiculous amount of queries (like 40+) you probably have them executing inside a loop which is in most cases unnecessary. 1 poor query could have far more server load than 100 efficient queries could ever have.

But with only 13, you have nothing to worry about. :)

BTW, every vbulletin page will start with 5 or 6, not including the content for that page. If the page has a lot of different content coming from different places (not all from a single table) then it may take many queries to pull the data correctly.

The Finman 10-01-2006 12:24 AM

Thanks SirAdrian & GearTripper for the fast reply. :D

I guess either I didn't read it correctly or I didn't remember it correctly. ;)

I feel much better now. Again thanks :)


All times are GMT. The time now is 05:49 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.00943 seconds
  • Memory Usage 1,708KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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