vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   How many Quiers? (https://vborg.vbsupport.ru/showthread.php?t=34931)

Psychdrone 02-09-2002 08:31 PM

is to much for a normal server

I have about 59 queries running for forumhome

Lesane 02-09-2002 08:48 PM

Did you counted all the select query's or?

Admin 02-10-2002 05:02 AM

59 is a lot... we have 33 but that's only because we got lots of info/stats queries going on.

What do you have installed?

Martz 02-10-2002 01:38 PM

<!-- Page generated in 1.7976969480515 seconds with 131 queries -->

:surprised

I think this may be a lot of queries then? Should I reduce it?

Martz 02-10-2002 01:39 PM

My forumhome:

Page generated in 1.7976969480515 seconds with 131 queries

Too many do you think? *shrug* I have no idea, but you guys are saying 59 is a lot...

Psychdrone 02-10-2002 04:58 PM

Quote:

Originally posted by Lesane
Did you counted all the select query's or?
IDK, I just did &explain=1
and stated what the results were

the other pages are fine, with around 20-30, but the main page has 59, I really don't know what could be causing this??

If you want you can take a look at www.ochroma.net/forum

Admin 02-10-2002 05:01 PM

What hacks do you have installed, Psychdrone? I see a lot of queries that get access masks data but I still don't think they are there in the vanilla vB.

Martz, you are in even deeper s***! :o

khan 02-10-2002 05:21 PM

lol
Powered by: vBulletin Version 9.1.1
in ochroma forum

Mark Hensler 02-10-2002 10:03 PM

Matrz, you've got some seriously jacked code. You really should re-think how your pulling your data.

Lesane 02-10-2002 11:39 PM

I have 18 query's

Radon3k 02-11-2002 01:09 AM

What are "queries"? What do they do? How do they run? What are their purpose? Just some ?'s I have cuz I have no idea what you guys are talking about heh :)

Mark Hensler 02-11-2002 06:59 AM

Queries are calls to the DataBase requesting information. Generally speaking, the fewer you use, the faster your scripts will run.

Martz 02-11-2002 10:16 AM

Hrmz, I think it the number of queries shot through the roof for the users-online today hack.. :(

I'll take a look.

Admin 02-11-2002 10:19 AM

Nope, because we also have that hacks installed and it only adds one more query.

Mark Hensler 02-11-2002 07:52 PM

You probably have a query instide a loop, when it should be outside....

Psychdrone 02-11-2002 11:51 PM

hmm what about this Fly, I have it so that it shows the subforums on the main page, would that require a seperate queriy for each one?

hmm thats the only thing I can think of that would add a lot, I'll keep on looking thu, if thats not it

and yes thank god I am not in the deep **** that Martz is in:D

Admin 02-12-2002 09:46 AM

1 Attachment(s)
Yes Psychdrone, that's part of your problem. (see file)
Remove that hack...

I can only guess the access queries are part of vBulletin 9.1.1.

c-pr0mpt 02-12-2002 10:04 AM

How do you find out how many queries are on a page?

Admin 02-12-2002 10:06 AM

Quote:

Originally posted by Psychdrone
IDK, I just did &explain=1
and stated what the results were

the other pages are fine, with around 20-30, but the main page has 59, I really don't know what could be causing this??

If you want you can take a look at www.ochroma.net/forum


c-pr0mpt 02-12-2002 10:07 AM

I see the &explain=1. But where is this run? You know I'm a n00b at this.

Admin 02-12-2002 10:09 AM

Huh? Just add the explain variable and scroll to the end of the page.
You can even call it without a value, i.e &explain= so you don't get all the technical stuff.

c-pr0mpt 02-12-2002 10:10 AM

I must be an idiot.

Admin 02-12-2002 10:24 AM

Replace & with ?.

c-pr0mpt 02-12-2002 10:26 AM

Thanks :)

Psychdrone 02-12-2002 11:23 PM

Quote:

Originally posted by FireFly
Yes Psychdrone, that's part of your problem. (see file)
Remove that hack...

I can only guess the access queries are part of vBulletin 9.1.1.

hehe;)

man that hack sucks! Maybe Firefly, you should put a request on so people will inform how many quiers if any, wil be added to the page.....?

Mark Hensler 02-13-2002 03:54 AM

if you look at the queries, it's running inside a loop changing the value of parentid. That could probably be added to the query outside the loop in a JOIN clause.

Admin 02-13-2002 04:48 AM

You can also re-write that hack in a similar fashion to how the actual page is displayed. Write a function called getsubs() that gets a $parentid, then goes through the cache of the forums displaying names of all forums with that $parentid.

Mark Hensler 02-13-2002 05:11 AM

Yes, I suppose you could, FireFly. Couldn't you? ;)

Psychdrone 02-13-2002 10:49 PM

wow that changed my quiers from 59 to 27!

YIKES, thanks Fire;)

eva2000 02-13-2002 10:58 PM

Quote:

Originally posted by Martz
My forumhome:

Page generated in 1.7976969480515 seconds with 131 queries

Too many do you think? *shrug* I have no idea, but you guys are saying 59 is a lot...

holy $h!t :eek:

mine has 30 queries on forumhome but i'm using 2.2.0

Page generated in 1.2088500261307 seconds with 30 queries,
spending 0.75153636932373 doing MySQL queries and 0.45731365680695 doing PHP things.

Martz 02-14-2002 11:44 AM

.5 seconds for an extra 101 queries isn't bad though :D

Scott MacVicar 02-14-2002 01:08 PM

Page generated in 0.39263999462128 seconds with 23 queries,
spending 0.062354683876038 doing MySQL queries and 0.33028531074524 doing PHP things.

Another hack which i noticed took up alot was the last topic title on forumhome that gets the icon as well, for every forum there is a query to the icon table + the thread table to get the title and icon. Mine just stores it in the forum table so it doesn't increase queries.

Tim Wheatley 02-16-2002 03:41 AM

Forum Homepage:

Page generated in 3.5857490301132 seconds with 100 queries,
spending 3.0074957609177 doing MySQL queries and 0.57825326919556 doing PHP things.

Largest Forum's forumdisplay page:
Includes five sub-forums, over 60,000 posts.

Page generated in 0.53195905685425 seconds with 22 queries,
spending 0.29055750370026 doing MySQL queries and 0.24140155315399 doing PHP things.

Thread with over 130 Replies in that largest forum above:

Page generated in 0.95708394050598 seconds with 109 queries,
spending 0.23254978656769 doing MySQL queries and 0.72453415393829 doing PHP things.

Admin 02-16-2002 05:43 AM

Tim Wheatley, this is not a contest. ;)

Tim Wheatley 02-16-2002 11:17 AM

Oooohhhhhhhh yes it is ;)

Life is ony big contest :D

Lesane 02-18-2002 05:08 PM

haha :D

i just installed 2.2.2 with some stats:

Page generated in 3.4783860445023 seconds with 41 queries,
spending 2.6836801767349 doing MySQL queries and 0.79470586776733 doing PHP things.

tamarian 02-19-2002 05:20 PM

For those who installed the Sub-Forum hack, it will add many queries, one for each forum and for each sub-forum. You can eliminate the sub-forum queries if you have no private/hidden forum under a public forums. Details are in the sub-forum hack thread.

DFX 03-04-2002 05:31 PM

Page generated in 0.16160094738007 seconds with 24 queries,
spending 0.077735185623169 doing MySQL queries and 0.083865761756897 doing PHP things.

I guess i'm safe :)


All times are GMT. The time now is 07:45 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.01271 seconds
  • Memory Usage 1,778KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (38)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