PDA

View Full Version : How many queries do you have on the following pages?


N9ne
29 Sep 2002, 13:25
I just want to know in general of how how many queries I have compares to others!

I want to know your query count for the following files:
showthread.php
forumdisplay.php
index.php
editpost.php
newreply.php
newthread.php

Thanks ;)

Chris M
29 Sep 2002, 13:30
showthread.php - 30
forumdisplay.php - 22
index.php - 35
editpost.php - 23
newreply.php - 22
newthread.php - 13

Satan

N9ne
29 Sep 2002, 14:21
For the amount of hacks you install, that doesn't look too bad, apart from index.php :o

AsedaH
29 Sep 2002, 14:26
whoa...on hellsatan's board, i like the way that box pops up to unregister members....nice

N9ne
29 Sep 2002, 14:33
Hehe I hate that, it's annoying :p

Chris M
29 Sep 2002, 15:38
Lol...@AsedaH -

I think it is one of TECK's hacks:)

Satan

TECK
29 Sep 2002, 16:05
hmm and i complain that i have 18queries on forumdisplay and showthread....

N9ne
29 Sep 2002, 16:12
Only 18 on forumdisplay and showthread? :-O how did you manage that?!

Chris M
29 Sep 2002, 16:22
He probably didnt install a large amount of hacks, and/or optimised the code he uses:)

Satan

TECK
29 Sep 2002, 16:27
chris, i have more then you can imagine installed :)

Chris M
29 Sep 2002, 16:55
Ok...

I'll go with my second idea;)

Lol...

Satan

N9ne
29 Sep 2002, 19:33
He obviously optimized his code ;)

But he has so many hacks installed, and still manages to have less queries than a stock vB...that's amazing...

Brad
29 Sep 2002, 19:55
showthread.php - 38
forumdisplay.php - 32
index.php - 28
editpost.php - 27
newreply.php - 22
newthread.php -21

i need to optimize my code a bit, showthread and forumdisplay are way higher then i want them, o and i took my index.php down from 35 this morning :)

Diva
29 Sep 2002, 19:55
so, how does one see how many queries they have? Not that I don't know how... Some guy asked me to ask for him. Yeah, that's it. :rolleyes:

Chris M
29 Sep 2002, 20:18
I presume everyone who answered uses vBmicrostats...

Satan

Diva
29 Sep 2002, 20:28
Darn. Shunned again... :disappointed:

Chris M
29 Sep 2002, 20:52
Lol...

Satan

TECK
29 Sep 2002, 22:00
Originally posted by Tha Rock
He obviously optimized his code ;)

But he has so many hacks installed, and still manages to have less queries than a stock vB...that's amazing... actually i call optimizing the code as hacks... :)

SiXXGuNNZ
30 Sep 2002, 00:15
showthread.php 27
forumdisplay.php 23
index.php 29
editpost.php 24
newreply.php 21
newthread.php 14

Brad
30 Sep 2002, 00:15
TECK, do you have any points on how to optimize the default code?, ive already tied all my pm querys into one and always add my new templates to the correct files, however my querys are way higher then i would like them to be.

Erwin
30 Sep 2002, 11:42
Logged in (minus 1 or 2 for logged out):

showthread.php - 21
forumdisplay.php - 22
index.php - 26
editpost.php - 23
newreply.php - 22
newthread.php - 13

For those who have seen my site, it's not too bad considering that my forum has over 150 hacks and is quite modified. TECK would know... :)

N9ne
30 Sep 2002, 19:20
I took out how many unread PMs there are, and the inbox total, I would like these to be shown but that adds two queries, how can I optimize that?

kennethj
01 Oct 2002, 11:26
Originally posted by Tha Rock
I just want to know in general of how how many queries I have compares to others!Thanks ;)


showthread.php - 21
forumdisplay.php - 19
index.php - 18
editpost.php - 21
newreply.php - 19
newthread.php - 11

a few hacks but not many... no avatar, post counter direct link, yesterday today, blink pm on message, quick reply box, microstats - no template -

not sure if thet add any, but don't care - as long as the board looks and runs trouble free....

site about fiished, coupple of days...

Shades of (http://shadesof.net/vbulletin/?s=)

Ken

nsr81
01 Oct 2002, 12:33
showthread.php - 19
forumdisplay.php - 19
index.php - 18
editpost.php - 21
newreply.php - 19
newthread.php - 11

Only 2 hacks, or was it 3 :D

Velocd
01 Oct 2002, 13:55
I have three styles, two of which generate about the same amount of queries, and one which is my "lite browser" style which generates less queries because It has less hacks installed.

1 & 2 style:

showthread.php - 35
forumdisplay.php - 16
index.php - 23
editpost.php - 29
newreply.php - 25
newthread.php - 19

3rd:
index.php - 21
forumdisplay.php - 15
showthread.php - 34 <-- I don't get this page..
newthread.php - 19
newreply.php - 25
editpost.php - 28

Just about all my pages generate under .25 seconds as well usually (for me at least).

My biggest issue is that showthread.php, I can't seem to figure out where the queries are coming from (when trying to simplify it)

Brad
01 Oct 2002, 14:42
Velocd: trun on debug mode and look at the queries from there :)

Velocd
01 Oct 2002, 17:10
Just curious, but why? I haven't messed with debug mode too much..

Chris M
01 Oct 2002, 19:07
I'm not sure what the debug mode does to your board:confused:

Satan

Erwin
01 Oct 2002, 22:07
Debug allows you to use the query and explain variables, so you can look at db queries in detail to debug errors. When you have debug on though, your site is susceptible to hacking and is a security risk.