The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Query In a Loop
Can anyone explain to me what a query in a loop is? I've seen some people stat that, 'oh that query is in a loop' and its talked as its bad. So here my noob question for the day lol What is a query in a loop and how can you dectect it?
|
#2
|
||||
|
||||
Quote:
At least as i understand it, thats bad |
#3
|
|||
|
|||
it's very bad because then the number of queries (which is normally the bottle neck on a site) is bound by that loop. Which say if it looped 100 times, then you'd get 100 queries per visit which is way too many.
It's always more efficient to grab more than you need and cache it instead of having a query in a loop. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|