#5063 - Use get_table_count_approx for forum drivers / Do not count bots created by phpBB towards number of members
| Identifier | #5063 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Use get_table_count_approx for forum drivers / Do not count bots created by phpBB towards number of members |
| Status | Open |
| Handling member | Deleted |
| Addon | core_forum_drivers |
| Description | CNS uses get_table_count_approx for counting members/topics/posts, because InnoDB is very slow. Ideally forum drivers should use this to.
Also: phpBB creates a bunch of bot accounts for web crawlers. Do not count these towards total site members in Composr when using the phpBB driver. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".
Comments
I wonder how phpBB itself handles this. Does it not count bots? Does it show a total at all?
Regardless, this isn't a big issue, we just wanted to raise it on the tracker in case people care and to have the discussion.
Also in the ideal world we'd be using get_table_count_approx for the member/topic/post count queries in the forum drivers, as counting full table rows on InnoDB is very slow. We're currently only doing that for CNS. If we do that, we either need to not do the filtering or actually have a third query for the number of bots to subtract (rather than doing it as part of a WHERE clause). I'll add that to this issue.