![]() |
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.
|
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 |
Thanks for the $templatesused hint - saved me quite a few queries on my index, forumdisplay and showthread! :)
|
You can tie the 3 PM queries into one if you're good. :D
|
I did that Matt. :)
PHP Code:
|
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. ;)
|
Quote:
|
Quote:
|
Thank Matt. :)
|
I suddendly grabbed your precious trick !
:D 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 |
All times are GMT. The time now is 01:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|