![]() |
and i have the same error when click THANKS:
Quote:
|
Version 3.1 (2/11/06):
|
Hey Abe1,
Although the showthread page uses only ONE query, the load seems yet to loose. I've attached the query exp of one normal thread on my forum. One post got thanked 13 times and it took almost 10 sec to query! https://vborg.vbsupport.ru/ |
Quote:
Time Before: 0.13631 seconds Time After: 0.13647 seconds Time Taken: 0.00016 seconds |
Ahhhhh, I think I've made a terrible mistake here.
I figured out what the problem is that the mixing query I suggested awhile ago actually makes the hack's query time worse. When using multiple WHERE's in query, it queries ALL the entries out of the table and the filter it through the second WHERE. If there are a lot of thanks entries like mine, it tremendously stresses the server. Look at the image I attached above, at column Row and you'll understand why. So I strongly recommend switch back to the old time query. Code:
$post_thanks_querys = $db->query("SELECT postid FROM ". TABLE_PREFIX ."post WHERE threadid = '$post[threadid]'"); |
For some reason, as soon as I enable this product, my server load spike up to 10-20... why is that?
I have a lot of members online (around 200 at the same time) and a lot of thanked posts. I'm using the latest version. As soon as I disable this, server load goes back to normal (1-3). |
Can't remove thanks.
Quote:
Quote:
|
Quote:
Thanks, I've revert it back toversion 2.5 and the server load seems to be less than 3-4 now :D Before it was 20-30 edit: nvm.. it's fluctuating now.. going around 6-15 |
@dai-kun - Did you delete this line in the hook?
Code:
$post_thanks_cashe = $db->query("SELECT " . TABLE_PREFIX . "post_thanks.* FROM " . TABLE_PREFIX . "post_thanks, " . TABLE_PREFIX . "post WHERE " . TABLE_PREFIX . "post.postid = " . TABLE_PREFIX . "post_thanks.postid AND " . TABLE_PREFIX . "post.threadid = '$post[threadid]' ORDER BY " . TABLE_PREFIX . "post_thanks.username ASC"); |
Ok so how would I do this? Do I edit out that code in the 3.0 version? I tried that and it giving me errors.
Cam on. PHP Code:
|
All times are GMT. The time now is 09:04 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:
|