![]() |
Yes...sorry to say for some reason this nice feature totally trashed my DB server. Actually pegs out my CPU's on the DB server only for it seems to have to count of something way too much. Currently 732 users on line. Upload index.php...crash! Ver 2.2.4
|
The load of a COUNT-Statement is far too high on busy servers.
It will delay your forumshome by several seconds (!) and put an enormous load on the poor database. If your fora are quite busy (>100 ppl online), I would disencourage you of using this hack. Unfortunately I am no sql Guru. There is for sure a way to form a statement less ressource intensive but I am afraid I can only critizise not help :( Maybe anyone can jump in here? BTW: Allthough I may sound a bit harsh here (which I am not, I hope), I really appreciate everyone releasing hacks and I know it's sometimes really a mess to deal with, so please don't feel offended :) |
Quote:
into your SQL request, use this instead of original code: Code:
$getnewthread=$DB_site->query_first("SELECT COUNT(*) AS threads FROM thread WHERE lastpost > '$bbuserinfo[lastvisit]' and forumid <> 'id of your private forum'"); (auto don't count for all private forum by adding a checkbox, etc...) |
Agreed.. I have at time 130-160 online at a time, it put a LARGE load on the CPU's and slowed the forums considerably. Nice hack for smaller boards though!
|
Just run this query once on your DB,
ALTER TABLE `post` ADD INDEX(`dateline`) ; problem solved. It brings back my page generation time back from 2.5 seconds to 0.5 seconds. |
hghghghghghgh
|
Hi there,
I have come back to this hack after applying tril0Byte's welcome panel hack. And indeed, adding an index for dateline increases speed just back to normal. Great! Hack installed :) |
Is there a way to exclude forums from being counted?
|
one post done by me, 5 messages upper :eek:
|
Ahh ;).
|
All times are GMT. The time now is 04:53 PM. |
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:
|