If anybody has any suggestions, I would appreciate it. I realize it may be related to some setting my host needs to adjust. Or perhaps a permission?
If anybody has any suggestions, I would appreciate it. I realize it may be related to some setting my host needs to adjust. Or perhaps a permission?
This may happen if you have a very large number of topics/posts/users.
The functions in bbPress 0.9 are very inefficient and use a horrifying number of queries that will get blocked by many servers or timeout after 30 seconds.
I wrote some experimental fast replacement routines, let me see if I can find them.
This may happen if you have a very large number of topics/posts/users.
The functions in bbPress 0.9 are very inefficient and use a horrifying number of queries that will get blocked by many servers or timeout after 30 seconds.
I wrote some experimental fast replacement routines, let me see if I can find them.
Okay I had never written the special routine for “topics to which each user has replied” so it never even appeared in the last 0.9 although Sam incorporated some of my other improved queries.
But I sat down and wrote it just for you now
http://bbshowcase.org/plugins/fast-recount.zip
Basically the old 0.9 bbPress api loops through each and every user and does a few queries for each one, completely overloading any server and timing out and never finishing.
ie. 6 queries per user x 1000 users = 6000 queries !!!!
My version accomplishes the exact same results with only a handful of queries right inside the mysql engine regardless of how many users, so it should always finish in under 30 seconds (unless perhaps it’s millions of users)
Once you install and activate, under your recount menu you will see (among others)
FAST RECOUNT topics to which each user has replied
So check that box and leave the old one unchecked.
Until I have some time to fix the order in which the boxes appear, you should probably do the fast recount AFTER the other regular counts are done.
Oh and last but certainly not least, I highly recommend backing up your mysql database for wordpress/bbpress before using this plugin, because it’s experimental and does actually delete old data before creating the new data. Something could go wrong (in theory you could run it a second time to fix the problem but always best to be safe).
ps. make sure you update bbpress to 0.9.0.6 too
Okay I had never written the special routine for “topics to which each user has replied” so it never even appeared in the last 0.9 although Sam incorporated some of my other improved queries.
But I sat down and wrote it just for you now
http://bbshowcase.org/plugins/fast-recount.zip
Basically the old 0.9 bbPress api loops through each and every user and does a few queries for each one, completely overloading any server and timing out and never finishing.
ie. 6 queries per user x 1000 users = 6000 queries !!!!
My version accomplishes the exact same results with only a handful of queries right inside the mysql engine regardless of how many users, so it should always finish in under 30 seconds (unless perhaps it’s millions of users)
Once you install and activate, under your recount menu you will see (among others)
FAST RECOUNT topics to which each user has replied
So check that box and leave the old one unchecked.
Until I have some time to fix the order in which the boxes appear, you should probably do the fast recount AFTER the other regular counts are done.
Oh and last but certainly not least, I highly recommend backing up your mysql database for wordpress/bbpress before using this plugin, because it’s experimental and does actually delete old data before creating the new data. Something could go wrong (in theory you could run it a second time to fix the problem but always best to be safe).
ps. make sure you update bbpress to 0.9.0.6 too