Is it common for hosters to send you emails about them locking your database due to this addon (specifically, the 'hottest threads'-query)? I've had two emails so far where the 'running query' indicated by the auto-generated email was the 'hottest threads' query.
Pro tip, when serving the results from a complex COUNT query to all visitors of a website, cache the results. Even if it's just for a minute or so. Nobody will notice the counts aren't 100% accurate.
...Oh wait right, PHP, nvm.
We'll be forced to disable or hack around in this addon if we get another email, in order to prevent our website from being unavailable or our hosting party kicking us out or fining us or whatever. Much obliged if performance could be enhanced.
Relevant info & stats, this problem occurs on vB 3.8 running v. 6.5 of this addon on a Hostgator hosting account, a forum with 300K posts.
MySQL EXPLAIN indicates it has to run through almost 6000 rows for a simple and frequently-accessed count / set o' stats.
|