The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Code Optimisation - Anyone got anything that can optimise your vB files?
Im kinda worried about how many queries my index.php file, and showthread.php file seem to be spilling out...
Has anyone got any code modifications that can reduce the Query count, and optimised the PHP code used? Satan |
#2
|
||||
|
||||
InvisionBoard has the queries lower than 10, I don't know what makes vb queries go so high, must be all the extra functions, and juciy features.
Go ask invboard what they do "Hi, My name is Chris, I am from vBulletin.org, can you tell me how you have your queries so low? so I may use it for my vB board?" |
#3
|
||||
|
||||
How many querie's do those pages have?
|
#4
|
||||
|
||||
I'd rather have the features than Invision Board
|
#5
|
|||
|
|||
If you remove the queries for total posts, total threads, members, newest member, birthdays, avatars for welcome panel, WOL, that will lose you about hmm, 8 queries on forumhome...
forumdisplay, probably the wol there, and i dunno what else. showthread, just get rid of everything apart from usernames in the postbit! So you can still see who's posting, and what they're saying! hehe |
#6
|
||||
|
||||
Tips:
1) If you've removed the moderator column, remove the whole chunk of code that is used to look up moderators - saves you 1 query. 2) Combine the 3 PM queries into 1 - saves you 2. 3) Put all templates into templatesinclude="" section at the top of the file - saves you a few there. 4) Remove all the unecessary info - eg. I removed the newest member username from index - that's 1 query. I also removed total threads (I left only total posts) - that's another query. All these queries add up. |
#7
|
||||
|
||||
Can you show me how to do no2 again Erwin
Regards - miSt |
#8
|
||||
|
||||
Replace old PM code with this one.
PHP Code:
|
#9
|
|||
|
|||
Do remember that in some cases less querys can = more load on the servers side, sometimes its better to have 2 small querys then one huge one.
|
#10
|
|||
|
|||
AL: That happens when there's one huge query, as it takes time to run it but if you combine three small queries, it isn't too bad
Question: In some files, I have a few lines of templatesused= ie. I have several occurances, like this: $templatesused= loads of template names here $templatesused= loads here too $templatesused= some here too! Would it be better to combine these? Also, when a template is called elsewhere within the code, how can I tell if it's running an extra query? Also, what was the method to see what queries are run on each page? I know it's something to do with debug mode... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|