Search Results for 'bbpress'
-
Search Results
-
Hello,
I’ve recently set up a BBPress forum for non-profit Bike Pittsburgh and their host, Pair Networks, shut down their database because of the load BBPress was putting on the server. Pair has since reinstated the db, but I was wondering if anyone could offer any insight as to how I might trim down the size of the queries that BBPress is putting through. A little background:
- I used this method to convert a WordPress XDForum into BBPress. I know the author of that post mentions that the method he uses might not be the most efficient, however at this point (after the conversion), I wouldn’t think that BBPress is using any of this info any more, correct?
- We’re running BBPress v. 0.9.0.2
- We’re using the following plugins: Akismet, Use Display Name, BBPress Private Messaging, Post Count Plus, Forum Last Poster, and Images Allowed
The information from the host was this:
With that said, we wanted to provide a follow up in terms of the nature of the problem itself. The problem is that the database is running some very inefficient queries, trying to sort through 2.5 million rows and are returning very few to no results. These queries take a long time to run and are called “slow queries”. As you gain in traffic, the more of these slow queries that are run, the higher the load on the server, and therefore the more affect you have on other customers.
I’ve included some examples of these queries below for your review:
# Time: 080930 20:55:01
# User@Host: bikepgh[bikepgh] @ [209.68.4.180]
# Query_time: 54 Lock_time: 0 Rows_sent: 10 Rows_examined: 2469001
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN
(SELECT MAX
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY
forum_id);
# Time: 080930 20:56:05
# User@Host: bikepgh[bikepgh] @ [209.68.4.180]
# Query_time: 71 Lock_time: 0 Rows_sent: 10 Rows_examined: 2469001
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN
(SELECT MAX
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY
forum_id);
# Time: 080930 20:56:43
# User@Host: bikepgh[bikepgh] @ [209.68.4.180]
# Query_time: 67 Lock_time: 0 Rows_sent: 10 Rows_examined: 2469001
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN
(SELECT MAX
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY
forum_id);
# Time: 080930 20:57:38
# User@Host: bikepgh[bikepgh] @ [209.68.4.180]
# Query_time: 52 Lock_time: 0 Rows_sent: 10 Rows_examined: 2469001
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN
(SELECT MAX
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY
forum_id);
# Time: 080930 21:20:46
# User@Host: bikepgh[bikepgh] @ [209.68.4.180]
# Query_time: 263 Lock_time: 0 Rows_sent: 10 Rows_examined: 2469001
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN
(SELECT MAX
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY
forum_id);
# Time: 080930 21:22:35
# User@Host: bikepgh[bikepgh] @ [209.68.4.180]
# Query_time: 281 Lock_time: 0 Rows_sent: 0 Rows_examined: 1952752
SELECT forum_id, topic_id FROM bb_topics WHERE topic_last_post_id IN
(SELECT MAX
(topic_last_post_id) FROM bb_topics WHERE topic_status=0 GROUP BY
forum_id);
As you can see, these queries are taking almost 300 seconds to complete
(query_time). This is an extremely high time, as a query on a shared server
should take under 10 seconds to complete.
I hope this helps provide some needed details for you. If we can be of any
further assistance, please do not hesitate to ask.
Any help as to what I might do in PHPMyAdmin or otherwise to help lower the load on the db would be VERY MUCH appreciated!
Topic: bb_forums loop twice
I’m editing current Theme for the bbPress Alpha 1.0 Release… I have created a Side bar that appears on almost all the pages with forums listed. Just like WP category. (site: http://howtoreachmygoals.com/ask/). Now, I’m facing some problem with Looping through the Forums (bb_forums()).
My side bar is executed before main contents. so when main contents require to loop the forums again, like Category listing page / Forum on posting (selecting dropdown box). its returning NULL / empty.
I wanted to find-out is there any way that i can Reset the bb_forums( ) loop and make it available again for next time?
many thanks!
I installed bbPress 0.9.0.2 and tried to integrate with WP 2.5 site. The two are at http://www.my-site/forum and http://www.mysite/blog under the root directory. I have two issues:
First is with permalinks set to the default (/forum.php?id=1), no problem, I can view profiles and posts within bbPress. However if I use either of the other settings for a permalink, when I click on any profile or post topic within admin control panel or site view, I only get a blank page, no error. Example: the post should be at “forum/post-name”, which is exactly where the link takes me but a blank page exists. However I can view the user profiles registered at bbPress within the WP admin area, so I believe the two are at least partially integrated.
The host is GoDaddy and there are no problems with WP permalinks. I have tried the using the following htaccess code with the /forum directory:
# BEGIN bbPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forum/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /forum/index.php [L]
</IfModule>
Also just having one line:
Options +MultiViews
Also the exact code generated at bb-admin/rewrite-rules.php
Second issue is after login to bbPress, a simple link to the WP admin requests me to login again. Does this take more than a simple link to “…/blog/wp-admin/”? I have checked the cookies and both look identical.
Thanks for any help
I am hosting a site with bluehost. I installed bbpress with simplescripts. Although the installation seems to have gone correctly, I cannot log in. Every time I try, I’m just taken back to the log in page with no error message.
This is a standalone install – I have not attempted to integrate it with my wordpress install.
I have a WordPress 2.6.2 installation (xxxxxxx.com) sharing a user tables with bbPress 1.0 Alpha (xxxxxxx.com/forum). There are two separate databases, and bbPress uses the user tables from the WP database. The installations are integrated, but something strange is happening.
If I try to integrate WordPress into bbpress (I need to for everything I am doing), using the following call at the beginning of bb-config.php:
require_once(‘/homepages/15/d202815449/htdocs/wordpress/wp-blog-header.php’);
then my keymaster accounts immediately become admin accounts (and lose the admin tabs of “design”, “settings”, and so on in the admin interface). They show up as admins instead of keymasters on the user page in bb-admin. As soon as I take the call to wp-blog-header.php out again, the accounts go back to keymaster status. Any idea why this could be happening?