PDA

View Full Version : Query count.


K33nny
05-02-2004, 06:26 AM
I was wondering what I should do about the query count on my forums. I've noticed lately after a few modification's that the count on showthread (going to newest post) is at 40. Here are some average's from different pages:

index.php: 31 queries
forumdisplay.php: 32 queries
showthread.php: 33 queries
showthread.php - latest post: 40 queries
usercp.php: 24 queries

Should I be concerned about the query count being above 30? What could I possibly do to lower the count?

forum.ewplanet.com (http://forum.ewplanet.com)

K33nny
05-02-2004, 08:17 AM
Access Masks are off by the way.

Tony G
05-02-2004, 12:13 PM
Stop installing hacks?

That's the really obvious reason why your queries are increasing. What hacks have you installed?

K33nny
05-02-2004, 07:45 PM
Not alot honestly. As you can tell my forums are quite basic. :(

Xenon
05-02-2004, 09:04 PM
31 queries for a vb2 index page is really not basic...
iirc basic was 15 queries.

as for showthread, 33 queries can be ok, it depends if these are fast ones or not, i'd suggest to remove some though...

Maybe you have just some hacks which are not well coded.
sometimes you can combine a few queries (take a look at my forumhome optimization for vb2, or a quite similar hack by filburt.)

there are some optimization hacks for vb2 which i suggest to install, or the much better way:
upgrade to vb3 :)

K33nny
05-03-2004, 12:22 AM
I don't really like vB3, well I like it but it's got too much and I personally don't feel like disabling 75 things that I don't need or want. I'll just have to go back through everything I've installed and maybe remove stuff I don't really need. But honestly, I don't think I have THAT much installed.

I'll have to see though.

Zachery
05-03-2004, 01:58 AM
I don't really like vB3, well I like it but it's got too much and I personally don't feel like disabling 75 things that I don't need or want. I'll just have to go back through everything I've installed and maybe remove stuff I don't really need. But honestly, I don't think I have THAT much installed.

I'll have to see though.
What 75 things do you not like about vBulletin 3?

K33nny
05-03-2004, 02:34 AM
Read my post, I said that I didn't need them or want them. vBulletin2 gets the job done for what I want in a set of forums.

I got some of the pages to go down in query count, still going to work on a few other things.

Xenon
05-03-2004, 04:39 PM
Well i also don't like some things in vb3, but the advantages really outweight the disadvantages.

Especially the efficient way of caching and queries...

Zachery
05-03-2004, 05:13 PM
Read my post, I said that I didn't need them or want them. vBulletin2 gets the job done for what I want in a set of forums.

I got some of the pages to go down in query count, still going to work on a few other things.
vBulletin 3 gets the job done alot better at the end of the day and then some ;)

As stefan said the advantages realy kick the disadvantages, if you think there are any, in the bum ^^

K33nny
05-03-2004, 06:38 PM
I understand that and if I had a better understanding of the template system I would've upgraded but I'll wait until after I get back from Bootcamp to do any of that.

Zachery
05-03-2004, 06:40 PM
Its the vB2 template system with conditionals and CSS + orgianzed better ^^