Hope y’all are enjoying a well deserved vacation. Thanks in advance for any help!
The Tripawds forums are basically offline until I resolve some serious database issues randomly bringing our server down. We’ve performed some serious server configuration tuning, and my server manager has identified “the database” as the problem.
Specifically, with SimplePress active we see numerous resources being eaten up like this:
112666 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Sleep | 62 | | NULL |
| 112764 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Sleep | 16 | | NULL |
| 112925 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 3 | Creating sort index | SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (5517) ORDER BY umeta_id ASC |
| 112946 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Sleep | 16 | | NULL |
| 112951 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Sleep | 18 | | NULL |
FYI: In pruning and tuning our database, following directions received here (at least a couple years ago) I used phpMyAdmin to delete numerous inactive sfmembers, and then delete registered site users who were not sfmembers.
I then ran:
DELETE FROM wp_usermeta WHERE user_id NOT IN (SELECT ID FROM wp_users)
Our wp_usermeta table alone, however, still has some 2.6+million rows weighing in at 210+MB.
Since @mr-papa has been very helpful here over the years with similar issues, I’m looking for guidance to help reduce the size of our wp_usermeta table. More specifically, how might I locate and delete any orphan SF data stored in usermeta. Any guidance regarding that sleep business is also greatly appreciated.
NOTE: In my latest tests, I locked the forums and deactivated other plugins, then blocked any other visitors to the site with a Maintenance Mode screen. Server load remained stable at 3± for 12+ hours. I then opened the site to allow traffic (which logs show did increase /forums page views) but kept the forums locked. With me alone loading topics and replying I watched server load triple. Load immediately dropped when I deactivated SimplePress.
Discuss…