Skip to:
Content

BuddyPress.org

Opened 8 years ago

Closed 5 years ago

#7137 closed enhancement (maybelater)

Repair tool “Count friends for each user” doesn't scale to 150k users.

Reported by: djpaul's profile DJPaul Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Cc:

Description

From https://buddypress.org/support/topic/friends-module-not-working-after-clicking-on-buddypress-repair-tools/

I went to the “Buddypress Repair Tools” and clicked on: “Count friends for each user”
I’ve got 150.000 users in my website. It looks like it didn’t complete the script, and it brought back an error 500 page.
So, the wp-admin is throwing an error 500 if “Friends” module of Buddypress is active.
I have deactivated it through the database, editing the wp_options section. But now my users cannot add friends.
Is there any way to run the script outside the wp-admin area, or maybe directly to the mysql database?

Change History (2)

#1 @tw2113
7 years ago

This sounds like it'd be a good potential WP-CLI item. Batch processing anything at that amount is going to be a server performance issue.

#2 @espellcaste
5 years ago

  • Milestone Awaiting Contributions deleted
  • Resolution set to maybelater
  • Status changed from new to closed

We have a CLI command he can use.

wp bp tool repair friend-count

For sites with such a high number of users, BP-CLI is the recommended approach. For that reason, I'm closing this one as maybelater.

Note: See TracTickets for help on using tickets.