I used to have a large forum, which I eventually split into smaller forums because it evolved into separate communities. However, each new forum has the complete table of users from the original, resulting in thousands of users with no posts or replies, since their topics are now in another forum.
I already deleted all users with M_POSTS=0, but I still have thousands of users with M_POSTS>0 with no actual posts since those posts are no longer in the forum. Recalculating Forum Totals does not fix this issue.
Can someone confirm or think of any problem I could run into with any forum feature or functionality if I run the following SQL statement to effectively remove all users who have no post listed in the topics or replies tables?
I think it's pretty safe since I don't have archived topics or subscriptions in my forums and no mods dealing with user info. I already tested on a backup database and everything seems to be fine.
DELETE
FROM FORUM_MEMBERS
WHERE
(MEMBER_ID NOT IN (SELECT T_AUTHOR FROM FORUM_TOPICS))
AND
(MEMBER_ID NOT IN (SELECT R_AUTHOR FROM FORUM_REPLY))
AND
(MEMBER_ID NOT IN (SELECT MEMBER_ID FROM FORUM_MODERATOR))
Thanks.