The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
Send me your index.php by email and I'll take a look. You must have a query inside a loop which is how you get to 40.
|
#22
|
|||
|
|||
It's comin'... Actually I don't think there's any recursive or iterative call... but I'm sending it to you.
LMK Thanks a lot. Bye |
#23
|
||||
|
||||
Thanks for the $templatesused hint - saved me quite a few queries on my index, forumdisplay and showthread!
|
#24
|
|||
|
|||
You can tie the 3 PM queries into one if you're good.
|
#25
|
||||
|
||||
I did that Matt.
PHP Code:
|
#26
|
||||
|
||||
You're right - I reduced my index.php queries from 52 to 33 using all the stuff I learnt from here, WITHOUT reducing the number of hacks I have.
|
#27
|
|||
|
|||
Quote:
|
#28
|
||||
|
||||
Quote:
|
#29
|
||||
|
||||
Thank Matt.
|
#30
|
|||
|
|||
I suddendly grabbed your precious trick !
Well; I would use the same SUM(IF()) or COUNT(IF()) constructs on tables like post or thread, to reduce the query count when I check for posts since a time, per user, and so on... (note: I built indexes on those 'time' fields) My question is: should a COUNT(IF()) clause much heavy than three or forur different SELECTS, on such a large tables ? Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|