Quote:
Originally posted by Jawelin
I suddendly grabbed your precious trick !

My question is: should a COUNT(IF()) clause much heavy than three or forur different SELECTS, on such a large tables ?
|
I tried to join all my queries, for example, on post table, with the tip of SUM(IF ...,1,0) AS ....
This way, with a simple alone query, I dropped down by four the counter.
Before going on with actions also on most other tables, I'm here to ask if such a small performance decrease :
Code:
Before:
Page generated in 0.34648 seconds (35.27% PHP v4.1.2 + 64.73% MySQL v3.23.45) with 36 queries.
After:
Page generated in 0.49735 seconds (23.61% PHP v4.1.2 + 76.39% MySQL v3.23.45) with 32 queries.
could be a problem ???
We are on forumhome, so I should consider to multiply this load for all the concurrent user number.
What would be worst ?
0.15 secs load overhead or 4 queries more ???
:laugh:
Thank you very much.
Bye