The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
bad coding
Code:
Page generated in 0.71573806 seconds (37.71% PHP - 62.29% MySQL) with 97 queries |
#2
|
||||
|
||||
Mmm... let me guess... showthread? 2 queries for every post?
|
#3
|
|||
|
|||
forumdisplay
heh |
#4
|
||||
|
||||
thats more then bad coding. thats a crash waiting to happen. :-/
|
#5
|
|||
|
|||
You should have seen the arcade addon for the 'statistiks' hack. Until someone rewrote it, it caused 850 queries on an average site.
That's been cut down to 17 now. Must have been badly coded. |
#6
|
||||
|
||||
850 queries???
That must have been some loop... |
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Quote:
It only adds ONE query to showthread, and its only ran ONCE..... you big meanie! Bwahaha j/k |
#9
|
||||
|
||||
how good coder avoid using too much queries ?
tips or tour somewhere ? |
#10
|
||||
|
||||
well when using vb and queries always make sure there isnt a function that already does what your doing. try combine related queries through left joins but do not combine too many that will all together slow down the entire query. also always try to cache table from table to another so you dont have to query another table when you could have cached the data from the beginning, i.e. anything to do with counting entries could easily be cached instead of having to query a table and counting x rows.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|